summaryrefslogtreecommitdiff
path: root/U/dist3_051.pat
blob: 1a671d8bb0d0d141f063b596b25506ff3b756dff (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
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.
archname.U
    Protect against spaces in the output of uname -m.
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: 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	Thu Feb 16 16:26:25 1995
***************
*** 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 ;;
--- 264,274 ----
  			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
  '') ;;