| @@ -1,174 +1,184 @@ | | | @@ -1,174 +1,184 @@ |
1 | $NetBSD: patch-ac,v 1.6 2006/09/26 20:35:16 christos Exp $ | | 1 | $NetBSD: patch-ac,v 1.7 2013/02/09 18:30:14 christos Exp $ |
2 | | | 2 | |
3 | --- Configure.orig 2001-02-22 14:17:39.000000000 -0500 | | 3 | --- Configure.orig 2001-02-22 14:17:39.000000000 -0500 |
4 | +++ Configure 2006-09-26 15:17:42.033788587 -0400 | | 4 | +++ Configure 2013-02-09 13:06:33.000000000 -0500 |
| | | 5 | @@ -1507,7 +1507,7 @@ |
| | | 6 | myuname=`( ($uname -a) 2>/dev/null || hostname) 2>&1` |
| | | 7 | # tr '[A-Z]' '[a-z]' would not work in EBCDIC |
| | | 8 | # because the A-Z/a-z are not consecutive. |
| | | 9 | -myuname=`echo $myuname | $sed -e 's/^[^=]*=//' -e 's/\///g' | \ |
| | | 10 | +myuname=`echo $myuname | $sed -e 's/^[^=]*=//' -e "s/['/]//g" | \ |
| | | 11 | ./tr '[A-Z]' '[a-z]' | tr $trnl ' '` |
| | | 12 | newmyuname="$myuname" |
| | | 13 | dflt=n |
5 | @@ -2540,7 +2540,7 @@ | | 14 | @@ -2540,7 +2540,7 @@ |
6 | esac | | 15 | esac |
7 | ;; | | 16 | ;; |
8 | *) case "$d_inews" in | | 17 | *) case "$d_inews" in |
9 | - '') dflt="$prefix/bin";; | | 18 | - '') dflt="$prefix/bin";; |
10 | + '') dflt=none;; | | 19 | + '') dflt=none;; |
11 | "$define") | | 20 | "$define") |
12 | set dflt installinews bin | | 21 | set dflt installinews bin |
13 | eval $prefixit | | 22 | eval $prefixit |
14 | @@ -4412,6 +4412,9 @@ | | 23 | @@ -4412,6 +4412,9 @@ |
15 | nm_so_opt='--dynamic' | | 24 | nm_so_opt='--dynamic' |
16 | fi | | 25 | fi |
17 | ;; | | 26 | ;; |
18 | + *dragonfly*) | | 27 | + *dragonfly*) |
19 | + nm_so_opt='-D' | | 28 | + nm_so_opt='-D' |
20 | + ;; | | 29 | + ;; |
21 | esac | | 30 | esac |
22 | ;; | | 31 | ;; |
23 | esac | | 32 | esac |
24 | @@ -4882,6 +4885,25 @@ | | 33 | @@ -4882,6 +4885,25 @@ |
25 | esac | | 34 | esac |
26 | case "$xxx" in | | 35 | case "$xxx" in |
27 | x) | | 36 | x) |
28 | + xxx=`./loc libncurses$_a x $libpth` | | 37 | + xxx=`./loc libcurses$_a x $libpth` |
29 | + case "$xxx" in | | 38 | + case "$xxx" in |
30 | + /usr/lib*|/lib*) | | 39 | + /usr/lib*|/lib*) |
31 | + termlib='-lncurses' | | 40 | + termlib='-lcurses' |
32 | + d_havetlib="$define" | | 41 | + d_havetlib="$define" |
33 | + echo "Termlib library found." >&4 | | 42 | + echo "Termlib library found." >&4 |
34 | + ;; | | 43 | + ;; |
35 | + /*) | | 44 | + /*) |
36 | + termlib="$xxx" | | 45 | + termlib="$xxx" |
37 | + d_havetlib="$define" | | 46 | + d_havetlib="$define" |
38 | + echo "Termlib library found." >&4 | | 47 | + echo "Termlib library found." >&4 |
39 | + ;; | | 48 | + ;; |
40 | + *) | | 49 | + *) |
41 | + xxx=x | | 50 | + xxx=x |
42 | + esac | | 51 | + esac |
43 | + ;; | | 52 | + ;; |
44 | +esac | | 53 | +esac |
45 | +case "$xxx" in | | 54 | +case "$xxx" in |
46 | +x) | | 55 | +x) |
47 | xxx=`./loc libtermlib$_a x $libpth` | | 56 | xxx=`./loc libtermlib$_a x $libpth` |
48 | case "$xxx" in | | 57 | case "$xxx" in |
49 | /usr/lib*|/lib*) | | 58 | /usr/lib*|/lib*) |
50 | @@ -4939,6 +4961,25 @@ | | 59 | @@ -4939,6 +4961,26 @@ |
51 | esac | | 60 | esac |
52 | case "$xxx" in | | 61 | case "$xxx" in |
53 | x) | | 62 | x) |
54 | + xxx=`./loc libncurses.$so'*' x $libpth` | | 63 | + xxx=`./loc libcurses.$so'*' x $libpth` |
55 | + case "$xxx" in | | 64 | + case "$xxx" in |
56 | + /usr/lib*|/lib*) | | 65 | + /usr/lib*|/lib*) |
57 | + termlib='-lncurses' | | 66 | + termlib='-lcurses' |
58 | + d_havetlib="$define" | | 67 | + d_havetlib="$define" |
59 | + echo "Terminfo library found." >&4 | | 68 | + echo "Terminfo library found." >&4 |
60 | + ;; | | 69 | + ;; |
61 | + /*) | | 70 | + /*) |
| | | 71 | + xxx=`dirname "$xxx"` |
62 | + termlib="$xxx" | | 72 | + termlib="$xxx" |
63 | + d_havetlib="$define" | | 73 | + d_havetlib="$define" |
64 | + echo "Terminfo library found." >&4 | | 74 | + echo "Terminfo library found." >&4 |
65 | + ;; | | 75 | + ;; |
66 | + *) | | 76 | + *) |
67 | + xxx=x | | 77 | + xxx=x |
68 | + esac | | 78 | + esac |
69 | + ;; | | 79 | + ;; |
70 | +esac | | 80 | +esac |
71 | +case "$xxx" in | | 81 | +case "$xxx" in |
72 | +x) | | 82 | +x) |
73 | xxx=`./loc libtermlib.$so'*' x $libpth` | | 83 | xxx=`./loc libtermlib.$so'*' x $libpth` |
74 | case "$xxx" in | | 84 | case "$xxx" in |
75 | /usr/lib*|/lib*) | | 85 | /usr/lib*|/lib*) |
76 | @@ -6223,14 +6264,14 @@ | | 86 | @@ -6223,14 +6265,14 @@ |
77 | acttimes='$acttimes' | | 87 | acttimes='$acttimes' |
78 | aphostcmd='$aphostcmd' | | 88 | aphostcmd='$aphostcmd' |
79 | archobjs='$archobjs' | | 89 | archobjs='$archobjs' |
80 | -awk='$awk' | | 90 | -awk='$awk' |
81 | -basename='$basename' | | 91 | -basename='$basename' |
82 | +awk='$TOOLS_AWK' | | 92 | +awk='$TOOLS_AWK' |
83 | +basename='$TOOLS_BASENAME' | | 93 | +basename='$TOOLS_BASENAME' |
84 | bash='$bash' | | 94 | bash='$bash' |
85 | bin='$bin' | | 95 | bin='$bin' |
86 | binexp='$binexp' | | 96 | binexp='$binexp' |
87 | byacc='$byacc' | | 97 | byacc='$byacc' |
88 | c='$c' | | 98 | c='$c' |
89 | -cat='$cat' | | 99 | -cat='$cat' |
90 | +cat='$TOOLS_CAT' | | 100 | +cat='$TOOLS_CAT' |
91 | cc='$cc' | | 101 | cc='$cc' |
92 | ccflags='$ccflags' | | 102 | ccflags='$ccflags' |
93 | cf_by='$cf_by' | | 103 | cf_by='$cf_by' |
94 | @@ -6240,7 +6281,7 @@ | | 104 | @@ -6240,7 +6282,7 @@ |
95 | comm='$comm' | | 105 | comm='$comm' |
96 | contains='$contains' | | 106 | contains='$contains' |
97 | contdist='$contdist' | | 107 | contdist='$contdist' |
98 | -cp='$cp' | | 108 | -cp='$cp' |
99 | +cp='$TOOLS_CP' | | 109 | +cp='$TOOLS_CP' |
100 | cpp='$cpp' | | 110 | cpp='$cpp' |
101 | cppflags='$cppflags' | | 111 | cppflags='$cppflags' |
102 | cpplast='$cpplast' | | 112 | cpplast='$cpplast' |
103 | @@ -6305,21 +6346,21 @@ | | 113 | @@ -6305,21 +6347,21 @@ |
104 | d_xthread='$d_xthread' | | 114 | d_xthread='$d_xthread' |
105 | date='$date' | | 115 | date='$date' |
106 | defeditor='$defeditor' | | 116 | defeditor='$defeditor' |
107 | -diff='$diff' | | 117 | -diff='$diff' |
108 | +diff='$TOOLS_DIFF' | | 118 | +diff='$TOOLS_DIFF' |
109 | direntrytype='$direntrytype' | | 119 | direntrytype='$direntrytype' |
110 | -echo='$echo' | | 120 | -echo='$echo' |
111 | +echo='$TOOLS_ECHO' | | 121 | +echo='$TOOLS_ECHO' |
112 | ed='$ed' | | 122 | ed='$ed' |
113 | -egrep='$egrep' | | 123 | -egrep='$egrep' |
114 | +egrep='$TOOLS_EGREP' | | 124 | +egrep='$TOOLS_EGREP' |
115 | eunicefix='$eunicefix' | | 125 | eunicefix='$eunicefix' |
116 | exe_ext='$exe_ext' | | 126 | exe_ext='$exe_ext' |
117 | -expr='$expr' | | 127 | -expr='$expr' |
118 | +expr='$TOOLS_EXPR' | | 128 | +expr='$TOOLS_EXPR' |
119 | extrainews='$extrainews' | | 129 | extrainews='$extrainews' |
120 | filexp='$filexp' | | 130 | filexp='$filexp' |
121 | find='$find' | | 131 | find='$find' |
122 | firstmakefile='$firstmakefile' | | 132 | firstmakefile='$firstmakefile' |
123 | gccversion='$gccversion' | | 133 | gccversion='$gccversion' |
124 | glibpth='$glibpth' | | 134 | glibpth='$glibpth' |
125 | -grep='$grep' | | 135 | -grep='$grep' |
126 | +grep='$TOOLS_GREP' | | 136 | +grep='$TOOLS_GREP' |
127 | groupdesc='$groupdesc' | | 137 | groupdesc='$groupdesc' |
128 | hint='$hint' | | 138 | hint='$hint' |
129 | hostbits='$hostbits' | | 139 | hostbits='$hostbits' |
130 | @@ -6376,10 +6417,10 @@ | | 140 | @@ -6376,10 +6418,10 @@ |
131 | mimecap='$mimecap' | | 141 | mimecap='$mimecap' |
132 | mips='$mips' | | 142 | mips='$mips' |
133 | mips_type='$mips_type' | | 143 | mips_type='$mips_type' |
134 | -mkdir='$mkdir' | | 144 | -mkdir='$mkdir' |
135 | +mkdir='$TOOLS_MKDIR' | | 145 | +mkdir='$TOOLS_MKDIR' |
136 | more='$more' | | 146 | more='$more' |
137 | multistatedist='$multistatedist' | | 147 | multistatedist='$multistatedist' |
138 | -mv='$mv' | | 148 | -mv='$mv' |
139 | +mv='$TOOLS_MV' | | 149 | +mv='$TOOLS_MV' |
140 | myactive='$myactive' | | 150 | myactive='$myactive' |
141 | myuname='$myuname' | | 151 | myuname='$myuname' |
142 | n='$n' | | 152 | n='$n' |
143 | @@ -6417,11 +6458,11 @@ | | 153 | @@ -6417,11 +6459,11 @@ |
144 | prefshell='$prefshell' | | 154 | prefshell='$prefshell' |
145 | privlib='$privlib' | | 155 | privlib='$privlib' |
146 | privlibexp='$privlibexp' | | 156 | privlibexp='$privlibexp' |
147 | -rm='$rm' | | 157 | -rm='$rm' |
148 | +rm='$TOOLS_RM' | | 158 | +rm='$TOOLS_RM' |
149 | rmail='$rmail' | | 159 | rmail='$rmail' |
150 | rootid='$rootid' | | 160 | rootid='$rootid' |
151 | runnm='$runnm' | | 161 | runnm='$runnm' |
152 | -sed='$sed' | | 162 | -sed='$sed' |
153 | +sed='$TOOLS_SED' | | 163 | +sed='$TOOLS_SED' |
154 | sendmail='$sendmail' | | 164 | sendmail='$sendmail' |
155 | servername='$servername' | | 165 | servername='$servername' |
156 | sharpbang='$sharpbang' | | 166 | sharpbang='$sharpbang' |
157 | @@ -6442,7 +6483,7 @@ | | 167 | @@ -6442,7 +6484,7 @@ |
158 | strn='$strn' | | 168 | strn='$strn' |
159 | subscriptions='$subscriptions' | | 169 | subscriptions='$subscriptions' |
160 | sysman='$sysman' | | 170 | sysman='$sysman' |
161 | -tail='$tail' | | 171 | -tail='$tail' |
162 | +tail='$TOOLS_TAIL' | | 172 | +tail='$TOOLS_TAIL' |
163 | tee='$tee' | | 173 | tee='$tee' |
164 | termlib='$termlib' | | 174 | termlib='$termlib' |
165 | test='$test' | | 175 | test='$test' |
166 | @@ -6450,7 +6491,7 @@ | | 176 | @@ -6450,7 +6492,7 @@ |
167 | tk='$tk' | | 177 | tk='$tk' |
168 | tkinc='$tkinc' | | 178 | tkinc='$tkinc' |
169 | tklibs='$tklibs' | | 179 | tklibs='$tklibs' |
170 | -tr='$tr' | | 180 | -tr='$tr' |
171 | +tr='$TOOLS_TR' | | 181 | +tr='$TOOLS_TR' |
172 | trn_init='$trn_init' | | 182 | trn_init='$trn_init' |
173 | trn_select='$trn_select' | | 183 | trn_select='$trn_select' |
174 | trnl='$trnl' | | 184 | trnl='$trnl' |