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
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
14 ?MAKE:Extractall: Extract Options rsrc
15 ?MAKE: -pick wipe $@ %<
17 : extract files and exit if asked to do so
26 ! '') config_sh='config.sh'; config="$rsrc/config.sh";;
27 ! /*) config="$config_sh";;
28 ! *) config="$rsrc/$config_sh";;
31 echo "Fetching answers from $config_sh..."
33 test "$override" && . ./optdef.sh
35 ?X: extract has to be run from the top directory, not within UU.
44 ! '') config_sh='config.sh';;
47 echo "Fetching answers from $config_sh..."
50 test "$override" && . ./optdef.sh
52 ?X: extract has to be run from the top directory, not within UU.
58 *** /tmp/RCSAa22431 Thu Feb 12 10:33:10 1998
59 --- mcon/U/Head.U Tue May 13 09:15:46 1997
62 case "$inksh/$needksh" in
64 ?X: Unset ENV to avoid any ~/.kshrc that could alias cd or whatever...
70 case "$inksh/$needksh" in
72 ?X: Unset ENV to avoid any ~/.kshrc that could alias cd or whatever...
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
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
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
98 *) if test -f /etc/systemid; then
100 set `echo $3 | $sed 's/\./ /g'` $4
101 ! if $test -f sco_$1_$2_$3.sh; then
103 ! elif $test -f sco_$1_$2.sh; then
105 ! elif $test -f sco_$1.sh; then
110 *) if test -f /etc/systemid; then
112 set `echo $3 | $sed 's/\./ /g'` $4
113 ! if $test -f $src/hints/sco_$1_$2_$3.sh; then
115 ! elif $test -f $src/hints/sco_$1_$2.sh; then
117 ! elif $test -f $src/hints/sco_$1.sh; then
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
127 $cat >signal_cmd <<EOS
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
133 echo "(I can't seem be able to compile the test program -- Guessing)"
135 $cat >signal_cmd <<EOS
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
141 echo "(I can't seem be able to compile the test program -- Guessing)"
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
151 ! echo"(I can't seem to compile the test program...)"
154 *) dflt="$alignbytes"
159 ! echo "(I can't seem to compile the test program...)"
162 *) dflt="$alignbytes"
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
169 printf("%d\n", BITSPERBYTE);
172 ! if $cc $ccflags try.c -o try >/dev/null 2>&1 ; then
177 printf("%d\n", BITSPERBYTE);
180 ! if $cc $ccflags -o try try.c >/dev/null 2>&1 ; then
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
193 ! if $cc $ccflags try.c -o try >/dev/null 2>&1 && ./try > /dev/null; then
196 [1-4][1-4][1-4][1-4]|12345678|87654321)
201 ! if $cc $ccflags -o try try.c >/dev/null 2>&1 && ./try > /dev/null; then
204 [1-4][1-4][1-4][1-4]|12345678|87654321)
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
212 : determine optimize, if desired, or use for debug flag also
216 *) dflt="$optimize";;
220 : determine optimize, if desired, or use for debug flag also
222 ! ' '|$undef) dflt='none';;
224 *) dflt="$optimize";;
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
234 I've tried to compile and run a simple program with:
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
242 I've tried to compile and run a simple program with:
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
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
266 ?X: using -K will prevent default aborting--maybe they're cross compiling?
274 ?X: using -K will prevent default aborting--maybe they're cross compiling?
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
284 ?S: questions. This is used to tag both config.sh and config_h.SH.
286 : who configured the system
287 + ?X: Ensure English date -- Jarkko Hietaniemi
288 + LC_ALL=C; export LC_ALL
291 ?X: Leave a white space between first two '(' for ksh. The sub-shell is needed
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
298 printf("%d\n", sizeof(char));
301 ! if $cc $ccflags try.c -o try >/dev/null 2>&1 ; then
306 printf("%d\n", sizeof(char));
309 ! if $cc $ccflags -o try try.c >/dev/null 2>&1 ; then
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
322 ! if $cc $ccflags nofile.c -o nofile $libs >/dev/null 2>&1; then
323 nofile=`./nofile 2>/dev/null`
325 if $test "$nofile"; then
330 ! if $cc $ccflags -o nofile nofile.c $libs >/dev/null 2>&1; then
331 nofile=`./nofile 2>/dev/null`
333 if $test "$nofile"; then
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
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
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`
362 if $test "$nofile"; then
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`
371 if $test "$nofile"; then
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
381 ! if $cc portar.c -o portar >/dev/null 2>&1 || \
382 ! $cc -DPORTAR=1 portar.c -o portar >/dev/null 2>&1 ; then
390 ! if $cc -o portar portar.c >/dev/null 2>&1 || \
391 ! $cc -DPORTAR=1 -o portar portar.c >/dev/null 2>&1 ; then
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
401 echo "Trying $D_sys_immu $D_sys_param $D_sys_sysmacros $D_sys_seg"
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
411 echo "Trying $D_sys_immu $D_sys_param $D_sys_sysmacros $D_sys_seg"
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
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
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
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
435 echo "<fcntl.h> defines the *_OK access constants." >&4
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
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
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
452 echo "<fcntl.h> defines the *_OK access constants." >&4
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
460 Index: mcon/U/d_attribut.U
461 No differences encountered
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
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
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
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
492 ! if $cc -o try $ccflags try.c >/dev/null 2>&1; then
500 ! if $cc $ccflags -o try try.c >/dev/null 2>&1; then
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
513 ! if $cc -o try $ccflags try.c >/dev/null 2>&1; then
521 ! if $cc $ccflags -o try try.c >/dev/null 2>&1; then
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
531 exit((unsigned long)sprintf(buf,"%s","foo") > 10L);
534 ! if $cc ucbsprf.c -o ucbsprf >/dev/null 2>&1 && ./ucbsprf; then
535 echo "Your sprintf() returns (int)." >&4
539 exit((unsigned long)sprintf(buf,"%s","foo") > 10L);
542 ! if $cc -o ucbsprf ucbsprf.c >/dev/null 2>&1 && ./ucbsprf; then
543 echo "Your sprintf() returns (int)." >&4
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
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
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
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
576 ! if $cc $ccflags -DTRYBITS fd_set.c -o fd_set >fd_set.out 2>&1 ; then
579 echo "Well, your system knows about the normal fd_set typedef..." >&4
584 ! if $cc $ccflags -DTRYBITS -o fd_set fd_set.c >fd_set.out 2>&1 ; then
587 echo "Well, your system knows about the normal fd_set typedef..." >&4
591 Hmm, your compiler has some difficulty with fd_set. Checking further...
593 ! if $cc $ccflags fd_set.c -o fd_set >fd_set.out 2>&1 ; then
596 echo "Well, your system has some sort of fd_set available..." >&4
599 Hmm, your compiler has some difficulty with fd_set. Checking further...
601 ! if $cc $ccflags -o fd_set fd_set.c >fd_set.out 2>&1 ; then
604 echo "Well, your system has some sort of fd_set available..." >&4
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
612 case "$d_getpagsz" in
614 ! if $cc $ccflags page.c -o page $libs >/dev/null 2>&1; then
620 case "$d_getpagsz" in
622 ! if $cc $ccflags -o page page.c $libs >/dev/null 2>&1; then
631 ! if $cc $ccflags page.c -o page $libs -lPW >/dev/null 2>&1; then
634 echo "(For your eyes only: I used the getpagesize() from -lPW.)"
639 ! if $cc $ccflags -o page page.c $libs -lPW >/dev/null 2>&1; then
642 echo "(For your eyes only: I used the getpagesize() from -lPW.)"
645 printf("%d\n", PAGESIZE);
648 ! if $cc $ccflags page.c -o page $libs >/dev/null 2>&1; then
651 echo "(Using value of PAGESIZE found in <sys/param.h>.)"
653 printf("%d\n", PAGESIZE);
656 ! if $cc $ccflags -o page page.c $libs >/dev/null 2>&1; then
659 echo "(Using value of PAGESIZE found in <sys/param.h>.)"
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
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>)
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>)
682 Index: mcon/U/d_msem.U
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
692 ! $cc blurfl.c -o blurfl >/dev/null 2>&1;
695 Checking for buffering of stdout to terminal.
700 ! $cc -o blurfl blurfl.c >/dev/null 2>&1;
703 Checking for buffering of stdout to terminal.
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
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
715 echo "<sys/file.h> defines the O_* constants..." >&4
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
723 echo "<sys/file.h> defines the O_* constants..." >&4
729 elif $test `./findhdr fcntl.h` && \
730 ! $cc "-DI_FCNTL" open3.c -o open3 >/dev/null 2>&1 ; then
732 echo "<fcntl.h> defines the O_* constants..." >&4
737 elif $test `./findhdr fcntl.h` && \
738 ! $cc "-DI_FCNTL" -o open3 open3.c >/dev/null 2>&1 ; then
740 echo "<fcntl.h> defines the O_* constants..." >&4
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
748 exit(status0 == status9);
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."
756 exit(status0 == status9);
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."
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
772 ! if $cc $optimize $ccflags $ldflags foo.c \
773 ! -o safebcpy $libs >/dev/null 2>&1; then
774 if ./safebcpy 2>/dev/null; then
781 ! if $cc $optimize $ccflags $ldflags \
782 ! -o safebcpy foo.c $libs >/dev/null 2>&1; then
783 if ./safebcpy 2>/dev/null; then
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
795 ! if $cc $optimize $ccflags $ldflags foo.c \
796 ! -o safemcpy $libs >/dev/null 2>&1; then
797 if ./safemcpy 2>/dev/null; then
804 ! if $cc $optimize $ccflags $ldflags \
805 ! -o safemcpy foo.c $libs >/dev/null 2>&1; then
806 if ./safemcpy 2>/dev/null; then
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
818 ! if $cc $optimize $ccflags $ldflags foo.c \
819 ! -o sanemcmp $libs >/dev/null 2>&1; then
820 if ./sanemcmp 2>/dev/null; then
827 ! if $cc $optimize $ccflags $ldflags \
828 ! -o sanemcmp foo.c $libs >/dev/null 2>&1; then
829 if ./sanemcmp 2>/dev/null; then
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
841 ! if $cc -o try $ccflags try.c >/dev/null 2>&1; then
849 ! if $cc $ccflags -o try try.c >/dev/null 2>&1; then
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
859 exit((unsigned long)vsprintf(buf,"%s",args) > 10L);
862 ! if $cc $ccflags vprintf.c -o vprintf >/dev/null 2>&1 && ./vprintf; then
863 echo "Your vsprintf() returns (int)." >&4
867 exit((unsigned long)vsprintf(buf,"%s",args) > 10L);
870 ! if $cc $ccflags -o vprintf vprintf.c >/dev/null 2>&1 && ./vprintf; then
871 echo "Your vsprintf() returns (int)." >&4
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
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
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
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
901 printf("%d\n", sizeof(double));
904 ! if $cc $ccflags try.c -o try >/dev/null 2>&1 ; then
909 printf("%d\n", sizeof(double));
912 ! if $cc $ccflags -o try try.c >/dev/null 2>&1 ; then
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
922 printf("%d\n", sizeof(float));
925 ! if $cc $ccflags try.c -o try >/dev/null 2>&1 ; then
930 printf("%d\n", sizeof(float));
933 ! if $cc $ccflags -o try try.c >/dev/null 2>&1 ; then
939 *** /tmp/RCSAa22531 Thu Feb 12 10:33:25 1998
940 --- mcon/U/fpu.U Mon Sep 29 13:16:11 1997
946 ! $cc -ffpa fpa.c -o fpa
948 if $test ! -s fpa.out; then
954 ! $cc -ffpa -o fpa fpa.c
956 if $test ! -s fpa.out; then
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
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
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
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
988 ! if $cc try.c -o try >/dev/null 2>&1; then
990 strip try >/dev/null 2>&1
996 ! if $cc -o try try.c >/dev/null 2>&1; then
998 strip try >/dev/null 2>&1
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
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
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
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
1030 ! if $cc $ccflags $ldflags try.c -o try >/dev/null 2>&1; then
1032 case "$o_nonblock" in
1033 '') echo "I can't figure it out, assuming O_NONBLOCK will do.";;
1038 ! if $cc $ccflags $ldflags -o try try.c >/dev/null 2>&1; then
1040 case "$o_nonblock" in
1041 '') echo "I can't figure it out, assuming O_NONBLOCK will do.";;
1044 exit(0); /* Bye bye, thank you for playing! */
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
1052 exit(0); /* Bye bye, thank you for playing! */
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
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
1066 echo "Getting the current patchlevel..." >&4
1067 if $test -r $rsrc/patchlevel.h;then
1068 ! patchlevel=`awk '/PATCHLEVEL/ {print $3}' < $rsrc/patchlevel.h`
1074 echo "Getting the current patchlevel..." >&4
1075 if $test -r $rsrc/patchlevel.h;then
1077 ! '/^#[ ]*define[ ][ ]*PATCHLEVEL/ {print $3}' \
1078 ! < $rsrc/patchlevel.h`
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
1088 printf("%d\n", sizeof(char *));
1091 ! if $cc $ccflags try.c -o try >/dev/null 2>&1 ; then
1096 printf("%d\n", sizeof(char *));
1099 ! if $cc $ccflags -o try try.c >/dev/null 2>&1 ; then
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
1112 ! if $cc try.c -o try >/dev/null 2>&1 ; then
1120 ! if $cc -o try try.c >/dev/null 2>&1 ; then
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
1133 ! if $cc try.c -o try >/dev/null 2>&1 ; then
1141 ! if $cc -o try try.c >/dev/null 2>&1 ; then
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
1154 ! if $cc $ccflags $sockethdr socket.c -o socket $libs \
1155 $socketlib >/dev/null 2>&1; then
1156 ./socket >/dev/null 2>&1
1162 ! if $cc $ccflags $sockethdr -o socket socket.c $libs \
1163 $socketlib >/dev/null 2>&1; then
1164 ./socket >/dev/null 2>&1
1168 *** /tmp/RCSAa22561 Thu Feb 12 10:33:29 1998
1169 --- mcon/U/src.U Fri Mar 7 15:08:15 1997
1172 ?RCS: Revision 3.0.1.1 1997/02/28 16:23:54 ram
1173 ?RCS: patch61: created
1175 ! ?MAKE:src +rsrc: Options Myread package contains
1176 ?MAKE: -pick add $@ %<
1180 ?RCS: Revision 3.0.1.1 1997/02/28 16:23:54 ram
1181 ?RCS: patch61: created
1183 ! ?MAKE:src +rsrc: Options package contains
1184 ?MAKE: -pick add $@ %<
1189 ?S: find the sources remotely.
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.
1197 ?LINT:change package
1198 : Find the path to the source tree
1200 ! '') src=`echo $0 | sed -e 's%/[^/][^/]*$%%'`;;
1207 ! /*) rsrc="$src/..";;
1212 ?S: find the sources remotely.
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.
1220 ?LINT:change package
1221 : Find the path to the source tree
1224 ! */*) src=`echo $0 | sed -e 's%/[^/][^/]*$%%'`;;
1238 ?X: If it matches, we know we found the right source tree. -- RAM, 15/03/96
1240 if test -f $rsrc/Configure && \
1241 ! $contains "^package=$package" $rsrc/Configure >/dev/null 2>&1
1243 : found it, so we are ok.
1246 ?X: If it matches, we know we found the right source tree. -- RAM, 15/03/96
1248 if test -f $rsrc/Configure && \
1249 ! $contains "^package=$package$" $rsrc/Configure >/dev/null 2>&1
1251 : found it, so we are ok.
1256 for src in . .. ../.. ../../.. ../../../..; do
1257 if test -f ../$src/Configure && \
1258 ! $contains "^package=$package" ../$src/Configure >/dev/null 2>&1
1264 for src in . .. ../.. ../../.. ../../../..; do
1265 if test -f ../$src/Configure && \
1266 ! $contains "^package=$package$" ../$src/Configure >/dev/null 2>&1
1275 ! ?X: It's too early to use Getfile.U (would stack too much units before this)
1278 ! rp="Directory where sources for $package are located?"
1282 ! if test -f $rsrc/Configure && \
1283 ! $contains "^package=$package" $rsrc/Configure >/dev/null 2>&1
1285 ! echo "Ok, I've found them under $src"
1287 ! echo "Sorry, I can't seem to be able to locate $package sources." >&4
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
1296 ! echo "Sources for $package found in $src" >&4
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.
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
1317 ! echo "Sources for $package found in \"$src\"." >&4
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
1327 printf("%d\n", value == 4.5);
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.."
1335 printf("%d\n", value == 4.5);
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.."
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
1348 ?RCS: Baseline for dist 3.0 netwide release.
1350 ?MAKE:usenm runnm nm_opt nm_so_opt: cat test Myread Oldconfig myuname grep \
1352 ?MAKE: -pick add $@ %<
1354 ?S: This variable contains 'true' or 'false' depending whether the
1356 ?RCS: Baseline for dist 3.0 netwide release.
1358 ?MAKE:usenm runnm nm_opt nm_so_opt: cat test Myread Oldconfig myuname grep \
1359 ! d_gnulibc egrep rsrc
1360 ?MAKE: -pick add $@ %<
1362 ?S: This variable contains 'true' or 'false' depending whether the
1368 ! dflt=`egrep 'inlibc|csym' ../Configure | wc -l 2>/dev/null`
1369 if $test $dflt -gt 20; then
1376 ! dflt=`$egrep 'inlibc|csym' $rsrc/Configure | wc -l 2>/dev/null`
1377 if $test $dflt -gt 20; then
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
1388 Always use echo " " (with a space) because of Eunice systems.
1390 + Only use \fBtest\fR with \-r, \-w, \-f or \-d since those are the only
1391 + portable switches. In particular, avoid "test -x".
1393 Use only programs that came with V7, so that you know everyone has them.
1395 Use \$\&contains when you want to grep conditionally, since not all
1397 *** end of unofficial patch ***