summaryrefslogtreecommitdiff
path: root/U/dist3_051.pat
blob: c1c877db7cef804e984dddac45c7ccd9dc4a482c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
This file contains patches to dist 3 (PL 51) that I used to generate
Configure for perl.

These patches do the following:

Oldconfig.U
    Clean up and extend the $osvers detection for DEC OSF/1 on the Alpha.
    Add MachTen detection (requires adding awk to ?MAKE line).
archname.U
    Protect against spaces in the output of uname -m.
Inhdr.U
    Delete tabs that caused /bin/sh to core dump on Mach Ten 2.1.1.
libc.U
    Pick up Linux nm output with leading __IO.
sig_name.U
    Look in <linux/signals.h> too.
usrinc.U
    Ensure that the ./mips file exists.  libpth.U calls it.
    
	Andy Dougherty		doughera@lafcol.lafayette.edu
	Dept. of Physics
	Lafayette College,	Easton, PA  18042  USA

Index: Inhdr.U
Prereq:  3.0.1.1 
*** mcon/U/Inhdr.U	Sat Oct 29 15:28:15 1994
--- /home2/doughera/lib/dist/U/Inhdr.U	Wed Mar  8 15:52:13 1995
***************
*** 52,61 ****
  	var=$2; eval "was=\$$2";
  	if $test "$xxx" && $test -r "$xxx";
  	then eval $xxf;
! 		eval "case \"\$$var\" in $undef) . ./whoa; esac"; eval "$var=\$td";
  		cont="";
  	else eval $xxnf;
! 		eval "case \"\$$var\" in $define) . ./whoa; esac"; eval "$var=\$tu"; fi;
  	set $yyy; shift; shift; yyy=$@;
  	case $# in 0) cont="";;
  	2) xxf="echo \"but I found <\$1> $instead.\" >&4";
--- 52,65 ----
  	var=$2; eval "was=\$$2";
  	if $test "$xxx" && $test -r "$xxx";
  	then eval $xxf;
! ?X: This line deliberately shifted left 1 tabstop to avoid /bin/sh core dump
! ?X: on MachTen 2.1.1.   --AD   March 8, 1995
! 	eval "case \"\$$var\" in $undef) . ./whoa; esac"; eval "$var=\$td";
  		cont="";
  	else eval $xxnf;
! ?X: This line deliberately shifted left 1 tabstop to avoid /bin/sh core dump
! ?X: on MachTen 2.1.1.   --AD   March 8, 1995
! 	eval "case \"\$$var\" in $define) . ./whoa; esac"; eval "$var=\$tu"; fi;
  	set $yyy; shift; shift; yyy=$@;
  	case $# in 0) cont="";;
  	2) xxf="echo \"but I found <\$1> $instead.\" >&4";
Index: Oldconfig.U
Prereq:  3.0.1.7 
*** mcon/U/Oldconfig.U	Thu Feb 16 09:52:38 1995
--- /home2/doughera/lib/dist/U/Oldconfig.U	Fri Mar 10 09:43:30 1995
***************
*** 45,51 ****
  ?X: for the sake of setting defaults.
  ?X:
  ?MAKE:Oldconfig hint myuname osname osvers: Instruct Myread uname \
! 	sed test cat rm lns n c contains Loc Options Tr
  ?MAKE:	-pick wipe $@ %<
  ?S:myuname:
  ?S:	The output of 'uname -a' if available, otherwise the hostname. On Xenix,
--- 45,51 ----
  ?X: for the sake of setting defaults.
  ?X:
  ?MAKE:Oldconfig hint myuname osname osvers: Instruct Myread uname \
! 	awk sed test cat rm lns n c contains Loc Options Tr
  ?MAKE:	-pick wipe $@ %<
  ?S:myuname:
  ?S:	The output of 'uname -a' if available, otherwise the hostname. On Xenix,
***************
*** 150,155 ****
--- 150,158 ----
  	$test -d /usr/apollo/bin && osname=apollo
  	$test -f /etc/saf/_sactab && osname=svr4
  	$test -d /usr/include/minix && osname=minix
+ 	$test -d /MachTen && osname=machten && \
+ 		osvers=`/usr/etc/version | $awk '{print $2}' | \
+ 		$sed -e 's/[A-Za-z]$//'`
  ?X: If we have uname, we already computed a suitable uname -a output, correctly
  ?X: formatted for Xenix, and it lies in $myuname.
  	if $test -f $uname; then
***************
*** 264,275 ****
  			osvers="$3"
  			;;
  		osf1)	case "$5" in
! 				alpha)  osname=dec_osf
! 					case "$3" in
! 						[vt]1\.*) osvers=1 ;;
! 						[vt]2\.*) osvers=2 ;;
! 						[vt]3\.*) osvers=3 ;;
! 					esac
  					;;
  			hp*)	osname=hp_osf1	;;
  			mips)	osname=mips_osf1 ;;
--- 267,277 ----
  			osvers="$3"
  			;;
  		osf1)	case "$5" in
! 				alpha)
! ?X: DEC OSF/1 myuname -a output looks like:  osf1 xxxx t3.2 123.4 alpha
! ?X: where the version number can be either vn.n or tn.n.
! 					osname=dec_osf
! 					osvers=`echo "$3" | sed 's/^[vt]//'`
  					;;
  			hp*)	osname=hp_osf1	;;
  			mips)	osname=mips_osf1 ;;
Index: archname.U
Prereq:  3.0.1.1 
*** mcon/U/archname.U	Thu Feb 16 09:52:31 1995
--- /home2/doughera/lib/dist/U/archname.U	Mon Feb 27 15:24:22 1995
***************
*** 12,18 ****
  ?RCS: Revision 3.0.1.1  1995/02/15  14:14:21  ram
  ?RCS: patch51: created
  ?RCS:
! ?MAKE:archname myarchname: cat Loc Myread Oldconfig osname test rm
  ?MAKE:	-pick add $@ %<
  ?S:archname:
  ?S:	This variable is a short name to characterize the current
--- 12,18 ----
  ?RCS: Revision 3.0.1.1  1995/02/15  14:14:21  ram
  ?RCS: patch51: created
  ?RCS:
! ?MAKE:archname myarchname: sed Loc Myread Oldconfig osname test rm
  ?MAKE:	-pick add $@ %<
  ?S:archname:
  ?S:	This variable is a short name to characterize the current
***************
*** 43,49 ****
  	tarch=`arch`"-$osname"
  elif xxx=`./loc uname blurfl $pth`; $test -f "$xxx" ; then
  	if uname -m > tmparch 2>&1 ; then
! 		tarch=`$cat tmparch`"-$osname"
  	else
  		tarch="$osname"
  	fi
--- 43,49 ----
  	tarch=`arch`"-$osname"
  elif xxx=`./loc uname blurfl $pth`; $test -f "$xxx" ; then
  	if uname -m > tmparch 2>&1 ; then
! 		tarch=`$sed -e 's/ /_/g' -e 's/$/'"-$osname/" tmparch`
  	else
  		tarch="$osname"
  	fi
Index: libc.U
Prereq:  3.0.1.7 
*** mcon/U/libc.U	Sat Oct 29 15:28:06 1994
--- /home2/doughera/lib/dist/U/libc.U	Mon Mar  6 10:34:07 1995
***************
*** 218,224 ****
  xscan='eval "<libc.ptf $com >libc.list"; $echo $n ".$c" >&4'
  xrun='eval "<libc.tmp $com >libc.list"; echo "done" >&4'
  ?X: BSD-like output, I-type for Linux
! if com="$sed -n -e 's/^.* [ADTSI]  *_[_.]*//p' -e 's/^.* [ADTSI] //p'";\
  	eval $xscan;\
  	$contains '^fprintf$' libc.list >/dev/null 2>&1; then
  		eval $xrun
--- 218,225 ----
  xscan='eval "<libc.ptf $com >libc.list"; $echo $n ".$c" >&4'
  xrun='eval "<libc.tmp $com >libc.list"; echo "done" >&4'
  ?X: BSD-like output, I-type for Linux
! ?X: Some versions of Linux include a leading __IO in the symbol name.
! if com="$sed -n -e 's/__IO//' -e 's/^.* [ADTSI]  *_[_.]*//p' -e 's/^.* [ADTSI] //p'";\
  	eval $xscan;\
  	$contains '^fprintf$' libc.list >/dev/null 2>&1; then
  		eval $xrun
***************
*** 263,269 ****
  		eval $xrun
  else
  	nm -p $* 2>/dev/null >libc.tmp
! 	com="$sed -n -e 's/^.* [ADTS]  *_[_.]*//p' -e 's/^.* [ADTS] //p'";\
  	eval "<libc.tmp $com >libc.list"
  	if $contains '^fprintf$' libc.list >/dev/null 2>&1; then
  		nm_opt='-p'
--- 264,270 ----
  		eval $xrun
  else
  	nm -p $* 2>/dev/null >libc.tmp
! 	com="$sed -n -e 's/^.* [ADTSI]  *_[_.]*//p' -e 's/^.* [ADTSI] //p'";\
  	eval "<libc.tmp $com >libc.list"
  	if $contains '^fprintf$' libc.list >/dev/null 2>&1; then
  		nm_opt='-p'
Index: sig_name.U
Prereq:  3.0.1.2 
*** mcon/U/sig_name.U	Wed Jun 22 01:20:22 1994
--- /home2/doughera/lib/dist/U/sig_name.U	Mon Feb 27 14:54:05 1995
***************
*** 40,46 ****
  case "$sig_name" in
  '')
  	echo "Generating a list of signal names..." >&4
! 	xxx=`./findhdr signal.h`" "`./findhdr sys/signal.h`
  	set X `cat $xxx 2>&1 | $awk '
  $1 ~ /^#define$/ && $2 ~ /^SIG[A-Z0-9]*$/ && $3 ~ /^[1-9][0-9]*$/ {
  	sig[$3] = substr($2,4,20)
--- 40,46 ----
  case "$sig_name" in
  '')
  	echo "Generating a list of signal names..." >&4
! 	xxx=`./findhdr signal.h`" "`./findhdr sys/signal.h`" "`./findhdr linux/signal.h`
  	set X `cat $xxx 2>&1 | $awk '
  $1 ~ /^#define$/ && $2 ~ /^SIG[A-Z0-9]*$/ && $3 ~ /^[1-9][0-9]*$/ {
  	sig[$3] = substr($2,4,20)
Index: usrinc.U
Prereq:  3.0.1.1 
*** mcon/U/usrinc.U	Sun May  8 22:14:36 1994
--- /home2/doughera/lib/dist/U/usrinc.U	Tue Feb 21 11:00:10 1995
***************
*** 60,71 ****
  	fi
  	$rm -f usr.c usr.out
  	echo "and you're compiling with the $mips_type compiler and libraries."
  else
  	echo "Doesn't look like a MIPS system."
  	echo "exit 1" >mips
- 	chmod +x mips
- 	$eunicefix mips
  fi
  echo " "
  case "$usrinc" in
  '') ;;
--- 60,72 ----
  	fi
  	$rm -f usr.c usr.out
  	echo "and you're compiling with the $mips_type compiler and libraries."
+ 	echo "exit 0" >mips
  else
  	echo "Doesn't look like a MIPS system."
  	echo "exit 1" >mips
  fi
+ chmod +x mips
+ $eunicefix mips
  echo " "
  case "$usrinc" in
  '') ;;