root/trunk/ports/net/macathena-moira/files/patch-config.sub

Revision 2, 29.7 kB (checked in by broder, 16 years ago)

Adding the ports that I've built so far - libhesiod, hesiod, and moira.

Hesiod and libhesiod should probably be submitted upstream to the MacPorts repository instead of ours.

Also, libhesiod doesn't compile as a universal library because libtool hates people

Line 
1 --- config.sub.orig     2006-03-30 11:22:12.000000000 -0500
2 +++ config.sub  2007-12-17 02:11:41.000000000 -0500
3 @@ -1,6 +1,11 @@
4  #! /bin/sh
5 -# Configuration validation subroutine script, version 1.1.
6 -#   Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc.
7 +# Configuration validation subroutine script.
8 +#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
9 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
10 +#   Inc.
11 +
12 +timestamp='2006-11-07'
13 +
14  # This file is (in principle) common to ALL GNU software.
15  # The presence of a machine in this file suggests that SOME GNU software
16  # can handle that machine.  It does not imply ALL GNU software can.
17 @@ -17,14 +22,18 @@
18  #
19  # You should have received a copy of the GNU General Public License
20  # along with this program; if not, write to the Free Software
21 -# Foundation, Inc., 59 Temple Place - Suite 330,
22 -# Boston, MA 02111-1307, USA.
23 -
24 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 +# 02110-1301, USA.
26 +#
27  # As a special exception to the GNU General Public License, if you
28  # distribute this file as part of a program that contains a
29  # configuration script generated by Autoconf, you may include it under
30  # the same distribution terms that you use for the rest of that program.
31  
32 +
33 +# Please send patches to <config-patches@gnu.org>.  Submit a context
34 +# diff and a properly formatted ChangeLog entry.
35 +#
36  # Configuration subroutine to validate and canonicalize a configuration type.
37  # Supply the specified configuration type as an argument.
38  # If it is invalid, we print an error message on stderr and exit with code 1.
39 @@ -45,30 +54,75 @@
40  #      CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
41  # It is wrong to echo any other type of specification.
42  
43 -if [ x$1 = x ]
44 -then
45 -       echo Configuration name missing. 1>&2
46 -       echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
47 -       echo "or     $0 ALIAS" 1>&2
48 -       echo where ALIAS is a recognized configuration type. 1>&2
49 -       exit 1
50 -fi
51 +me=`echo "$0" | sed -e 's,.*/,,'`
52  
53 -# First pass through any local machine types.
54 -case $1 in
55 -       *local*)
56 -               echo $1
57 -               exit 0
58 -               ;;
59 -       *)
60 -       ;;
61 +usage="\
62 +Usage: $0 [OPTION] CPU-MFR-OPSYS
63 +       $0 [OPTION] ALIAS
64 +
65 +Canonicalize a configuration name.
66 +
67 +Operation modes:
68 +  -h, --help         print this help, then exit
69 +  -t, --time-stamp   print date of last modification, then exit
70 +  -v, --version      print version number, then exit
71 +
72 +Report bugs and patches to <config-patches@gnu.org>."
73 +
74 +version="\
75 +GNU config.sub ($timestamp)
76 +
77 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
78 +Free Software Foundation, Inc.
79 +
80 +This is free software; see the source for copying conditions.  There is NO
81 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
82 +
83 +help="
84 +Try \`$me --help' for more information."
85 +
86 +# Parse command line
87 +while test $# -gt 0 ; do
88 +  case $1 in
89 +    --time-stamp | --time* | -t )
90 +       echo "$timestamp" ; exit ;;
91 +    --version | -v )
92 +       echo "$version" ; exit ;;
93 +    --help | --h* | -h )
94 +       echo "$usage"; exit ;;
95 +    -- )     # Stop option processing
96 +       shift; break ;;
97 +    - )        # Use stdin as input.
98 +       break ;;
99 +    -* )
100 +       echo "$me: invalid option $1$help"
101 +       exit 1 ;;
102 +
103 +    *local*)
104 +       # First pass through any local machine types.
105 +       echo $1
106 +       exit ;;
107 +
108 +    * )
109 +       break ;;
110 +  esac
111 +done
112 +
113 +case $# in
114 + 0) echo "$me: missing argument$help" >&2
115 +    exit 1;;
116 + 1) ;;
117 + *) echo "$me: too many arguments$help" >&2
118 +    exit 1;;
119  esac
120  
121  # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
122  # Here we must recognize all the valid KERNEL-OS combinations.
123  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
124  case $maybe_os in
125 -  linux-gnu*)
126 +  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
127 +  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
128 +  storm-chaos* | os2-emx* | rtmk-nova*)
129      os=-$maybe_os
130      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
131      ;;
132 @@ -94,15 +148,37 @@
133         -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
134         -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
135         -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
136 -       -apple)
137 +       -apple | -axis | -knuth | -cray)
138 +               os=
139 +               basic_machine=$1
140 +               ;;
141 +       -sim | -cisco | -oki | -wec | -winbond)
142                 os=
143                 basic_machine=$1
144                 ;;
145 +       -scout)
146 +               ;;
147 +       -wrs)
148 +               os=-vxworks
149 +               basic_machine=$1
150 +               ;;
151 +       -chorusos*)
152 +               os=-chorusos
153 +               basic_machine=$1
154 +               ;;
155 +       -chorusrdb)
156 +               os=-chorusrdb
157 +               basic_machine=$1
158 +               ;;
159         -hiux*)
160                 os=-hiuxwe2
161                 ;;
162 +       -sco6)
163 +               os=-sco5v6
164 +               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
165 +               ;;
166         -sco5)
167 -               os=sco3.2v5
168 +               os=-sco3.2v5
169                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
170                 ;;
171         -sco4)
172 @@ -117,10 +193,17 @@
173                 # Don't forget version if it is 3.2v4 or newer.
174                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
175                 ;;
176 +       -sco5v6*)
177 +               # Don't forget version if it is 3.2v4 or newer.
178 +               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179 +               ;;
180         -sco*)
181                 os=-sco3.2v2
182                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
183                 ;;
184 +       -udk*)
185 +               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186 +               ;;
187         -isc)
188                 os=-isc2.2
189                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
190 @@ -143,26 +226,84 @@
191         -psos*)
192                 os=-psos
193                 ;;
194 +       -mint | -mint[0-9]*)
195 +               basic_machine=m68k-atari
196 +               os=-mint
197 +               ;;
198  esac
199  
200  # Decode aliases for certain CPU-COMPANY combinations.
201  case $basic_machine in
202         # Recognize the basic CPU types without company name.
203         # Some are omitted here because they have special meanings below.
204 -       tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
205 -               | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
206 -               | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 \
207 -               | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
208 -               | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
209 -               | mips64 | mipsel | mips64el | mips64orion | mips64orionel \
210 -               | mipstx39 | mipstx39el \
211 -               | sparc | sparclet | sparclite | sparc64 | v850)
212 +       1750a | 580 \
213 +       | a29k \
214 +       | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
215 +       | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
216 +       | am33_2.0 \
217 +       | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
218 +       | bfin \
219 +       | c4x | clipper \
220 +       | d10v | d30v | dlx | dsp16xx \
221 +       | fr30 | frv \
222 +       | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
223 +       | i370 | i860 | i960 | ia64 \
224 +       | ip2k | iq2000 \
225 +       | m32c | m32r | m32rle | m68000 | m68k | m88k \
226 +       | maxq | mb | microblaze | mcore \
227 +       | mips | mipsbe | mipseb | mipsel | mipsle \
228 +       | mips16 \
229 +       | mips64 | mips64el \
230 +       | mips64vr | mips64vrel \
231 +       | mips64orion | mips64orionel \
232 +       | mips64vr4100 | mips64vr4100el \
233 +       | mips64vr4300 | mips64vr4300el \
234 +       | mips64vr5000 | mips64vr5000el \
235 +       | mips64vr5900 | mips64vr5900el \
236 +       | mipsisa32 | mipsisa32el \
237 +       | mipsisa32r2 | mipsisa32r2el \
238 +       | mipsisa64 | mipsisa64el \
239 +       | mipsisa64r2 | mipsisa64r2el \
240 +       | mipsisa64sb1 | mipsisa64sb1el \
241 +       | mipsisa64sr71k | mipsisa64sr71kel \
242 +       | mipstx39 | mipstx39el \
243 +       | mn10200 | mn10300 \
244 +       | mt \
245 +       | msp430 \
246 +       | nios | nios2 \
247 +       | ns16k | ns32k \
248 +       | or32 \
249 +       | pdp10 | pdp11 | pj | pjl \
250 +       | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
251 +       | pyramid \
252 +       | score \
253 +       | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
254 +       | sh64 | sh64le \
255 +       | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
256 +       | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
257 +       | spu | strongarm \
258 +       | tahoe | thumb | tic4x | tic80 | tron \
259 +       | v850 | v850e \
260 +       | we32k \
261 +       | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
262 +       | z8k)
263                 basic_machine=$basic_machine-unknown
264                 ;;
265 +       m6811 | m68hc11 | m6812 | m68hc12)
266 +               # Motorola 68HC11/12.
267 +               basic_machine=$basic_machine-unknown
268 +               os=-none
269 +               ;;
270 +       m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
271 +               ;;
272 +       ms1)
273 +               basic_machine=mt-unknown
274 +               ;;
275 +
276         # We use `pc' rather than `unknown'
277         # because (1) that's what they normally are, and
278         # (2) the word "unknown" tends to confuse beginning users.
279 -       i[34567]86)
280 +       i*86 | x86_64)
281           basic_machine=$basic_machine-pc
282           ;;
283         # Object if more than one company name word.
284 @@ -171,27 +312,90 @@
285                 exit 1
286                 ;;
287         # Recognize the basic CPU types with company name.
288 -       vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \
289 -             | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
290 -             | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
291 -             | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
292 -             | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \
293 -             | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
294 -             | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
295 -             | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
296 -             | sparc64-* | mips64-* | mipsel-* \
297 -             | mips64el-* | mips64orion-* | mips64orionel-*  \
298 -             | mipstx39-* | mipstx39el-* \
299 -             | f301-*)
300 +       580-* \
301 +       | a29k-* \
302 +       | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
303 +       | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
304 +       | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
305 +       | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
306 +       | avr-* | avr32-* \
307 +       | bfin-* | bs2000-* \
308 +       | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
309 +       | clipper-* | craynv-* | cydra-* \
310 +       | d10v-* | d30v-* | dlx-* \
311 +       | elxsi-* \
312 +       | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
313 +       | h8300-* | h8500-* \
314 +       | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
315 +       | i*86-* | i860-* | i960-* | ia64-* \
316 +       | ip2k-* | iq2000-* \
317 +       | m32c-* | m32r-* | m32rle-* \
318 +       | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
319 +       | m88110-* | m88k-* | maxq-* | mcore-* \
320 +       | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
321 +       | mips16-* \
322 +       | mips64-* | mips64el-* \
323 +       | mips64vr-* | mips64vrel-* \
324 +       | mips64orion-* | mips64orionel-* \
325 +       | mips64vr4100-* | mips64vr4100el-* \
326 +       | mips64vr4300-* | mips64vr4300el-* \
327 +       | mips64vr5000-* | mips64vr5000el-* \
328 +       | mips64vr5900-* | mips64vr5900el-* \
329 +       | mipsisa32-* | mipsisa32el-* \
330 +       | mipsisa32r2-* | mipsisa32r2el-* \
331 +       | mipsisa64-* | mipsisa64el-* \
332 +       | mipsisa64r2-* | mipsisa64r2el-* \
333 +       | mipsisa64sb1-* | mipsisa64sb1el-* \
334 +       | mipsisa64sr71k-* | mipsisa64sr71kel-* \
335 +       | mipstx39-* | mipstx39el-* \
336 +       | mmix-* \
337 +       | mt-* \
338 +       | msp430-* \
339 +       | nios-* | nios2-* \
340 +       | none-* | np1-* | ns16k-* | ns32k-* \
341 +       | orion-* \
342 +       | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
343 +       | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
344 +       | pyramid-* \
345 +       | romp-* | rs6000-* \
346 +       | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
347 +       | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
348 +       | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
349 +       | sparclite-* \
350 +       | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
351 +       | tahoe-* | thumb-* \
352 +       | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
353 +       | tron-* \
354 +       | v850-* | v850e-* | vax-* \
355 +       | we32k-* \
356 +       | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
357 +       | xstormy16-* | xtensa-* \
358 +       | ymp-* \
359 +       | z8k-*)
360                 ;;
361         # Recognize the various machine names and aliases which stand
362         # for a CPU type and a company and sometimes even an OS.
363 +       386bsd)
364 +               basic_machine=i386-unknown
365 +               os=-bsd
366 +               ;;
367         3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
368                 basic_machine=m68000-att
369                 ;;
370         3b*)
371                 basic_machine=we32k-att
372                 ;;
373 +       a29khif)
374 +               basic_machine=a29k-amd
375 +               os=-udi
376 +               ;;
377 +       abacus)
378 +               basic_machine=abacus-unknown
379 +               ;;
380 +       adobe68k)
381 +               basic_machine=m68010-adobe
382 +               os=-scout
383 +               ;;
384         alliant | fx80)
385                 basic_machine=fx80-alliant
386                 ;;
387 @@ -202,25 +406,35 @@
388                 basic_machine=a29k-none
389                 os=-bsd
390                 ;;
391 +       amd64)
392 +               basic_machine=x86_64-pc
393 +               ;;
394 +       amd64-*)
395 +               basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
396 +               ;;
397         amdahl)
398                 basic_machine=580-amdahl
399                 os=-sysv
400                 ;;
401         amiga | amiga-*)
402 -               basic_machine=m68k-cbm
403 +               basic_machine=m68k-unknown
404                 ;;
405         amigaos | amigados)
406 -               basic_machine=m68k-cbm
407 +               basic_machine=m68k-unknown
408                 os=-amigaos
409                 ;;
410         amigaunix | amix)
411 -               basic_machine=m68k-cbm
412 +               basic_machine=m68k-unknown
413                 os=-sysv4
414                 ;;
415         apollo68)
416                 basic_machine=m68k-apollo
417                 os=-sysv
418                 ;;
419 +       apollo68bsd)
420 +               basic_machine=m68k-apollo
421 +               os=-bsd
422 +               ;;
423         aux)
424                 basic_machine=m68k-apple
425                 os=-aux
426 @@ -229,6 +443,10 @@
427                 basic_machine=ns32k-sequent
428                 os=-dynix
429                 ;;
430 +       c90)
431 +               basic_machine=c90-cray
432 +               os=-unicos
433 +               ;;
434         convex-c1)
435                 basic_machine=c1-convex
436                 os=-bsd
437 @@ -249,27 +467,45 @@
438                 basic_machine=c38-convex
439                 os=-bsd
440                 ;;
441 -       cray | ymp)
442 -               basic_machine=ymp-cray
443 +       cray | j90)
444 +               basic_machine=j90-cray
445                 os=-unicos
446                 ;;
447 -       cray2)
448 -               basic_machine=cray2-cray
449 -               os=-unicos
450 -               ;;
451 -       [ctj]90-cray)
452 -               basic_machine=c90-cray
453 -               os=-unicos
454 +       craynv)
455 +               basic_machine=craynv-cray
456 +               os=-unicosmp
457 +               ;;
458 +       cr16c)
459 +               basic_machine=cr16c-unknown
460 +               os=-elf
461                 ;;
462         crds | unos)
463                 basic_machine=m68k-crds
464                 ;;
465 +       crisv32 | crisv32-* | etraxfs*)
466 +               basic_machine=crisv32-axis
467 +               ;;
468 +       cris | cris-* | etrax*)
469 +               basic_machine=cris-axis
470 +               ;;
471 +       crx)
472 +               basic_machine=crx-unknown
473 +               os=-elf
474 +               ;;
475         da30 | da30-*)
476                 basic_machine=m68k-da30
477                 ;;
478         decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
479                 basic_machine=mips-dec
480                 ;;
481 +       decsystem10* | dec10*)
482 +               basic_machine=pdp10-dec
483 +               os=-tops10
484 +               ;;
485 +       decsystem20* | dec20*)
486 +               basic_machine=pdp10-dec
487 +               os=-tops20
488 +               ;;
489         delta | 3300 | motorola-3300 | motorola-delta \
490               | 3300-motorola | delta-motorola)
491                 basic_machine=m68k-motorola
492 @@ -278,6 +514,10 @@
493                 basic_machine=m88k-motorola
494                 os=-sysv3
495                 ;;
496 +       djgpp)
497 +               basic_machine=i586-pc
498 +               os=-msdosdjgpp
499 +               ;;
500         dpx20 | dpx20-*)
501                 basic_machine=rs6000-bull
502                 os=-bosx
503 @@ -297,6 +537,10 @@
504         encore | umax | mmax)
505                 basic_machine=ns32k-encore
506                 ;;
507 +       es1800 | OSE68k | ose68k | ose | OSE)
508 +               basic_machine=m68k-ericsson
509 +               os=-ose
510 +               ;;
511         fx2800)
512                 basic_machine=i860-alliant
513                 ;;
514 @@ -307,6 +551,10 @@
515                 basic_machine=tron-gmicro
516                 os=-sysv
517                 ;;
518 +       go32)
519 +               basic_machine=i386-pc
520 +               os=-go32
521 +               ;;
522         h3050r* | hiux*)
523                 basic_machine=hppa1.1-hitachi
524                 os=-hiuxwe2
525 @@ -315,6 +563,14 @@
526                 basic_machine=h8300-hitachi
527                 os=-hms
528                 ;;
529 +       h8300xray)
530 +               basic_machine=h8300-hitachi
531 +               os=-xray
532 +               ;;
533 +       h8500hms)
534 +               basic_machine=h8500-hitachi
535 +               os=-hms
536 +               ;;
537         harris)
538                 basic_machine=m88k-harris
539                 os=-sysv3
540 @@ -330,13 +586,30 @@
541                 basic_machine=m68k-hp
542                 os=-hpux
543                 ;;
544 +       hp3k9[0-9][0-9] | hp9[0-9][0-9])
545 +               basic_machine=hppa1.0-hp
546 +               ;;
547         hp9k2[0-9][0-9] | hp9k31[0-9])
548                 basic_machine=m68000-hp
549                 ;;
550         hp9k3[2-9][0-9])
551                 basic_machine=m68k-hp
552                 ;;
553 -       hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
554 +       hp9k6[0-9][0-9] | hp6[0-9][0-9])
555 +               basic_machine=hppa1.0-hp
556 +               ;;
557 +       hp9k7[0-79][0-9] | hp7[0-79][0-9])
558 +               basic_machine=hppa1.1-hp
559 +               ;;
560 +       hp9k78[0-9] | hp78[0-9])
561 +               # FIXME: really hppa2.0-hp
562 +               basic_machine=hppa1.1-hp
563 +               ;;
564 +       hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
565 +               # FIXME: really hppa2.0-hp
566 +               basic_machine=hppa1.1-hp
567 +               ;;
568 +       hp9k8[0-9][13679] | hp8[0-9][13679])
569                 basic_machine=hppa1.1-hp
570                 ;;
571         hp9k8[0-9][0-9] | hp8[0-9][0-9])
572 @@ -345,27 +618,42 @@
573         hppa-next)
574                 os=-nextstep3
575                 ;;
576 +       hppaosf)
577 +               basic_machine=hppa1.1-hp
578 +               os=-osf
579 +               ;;
580 +       hppro)
581 +               basic_machine=hppa1.1-hp
582 +               os=-proelf
583 +               ;;
584         i370-ibm* | ibm*)
585                 basic_machine=i370-ibm
586 -               os=-mvs
587                 ;;
588  # I'm not sure what "Sysv32" means.  Should this be sysv3.2?
589 -       i[34567]86v32)
590 +       i*86v32)
591                 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
592                 os=-sysv32
593                 ;;
594 -       i[34567]86v4*)
595 +       i*86v4*)
596                 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
597                 os=-sysv4
598                 ;;
599 -       i[34567]86v)
600 +       i*86v)
601                 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
602                 os=-sysv
603                 ;;
604 -       i[34567]86sol2)
605 +       i*86sol2)
606                 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
607                 os=-solaris2
608                 ;;
609 +       i386mach)
610 +               basic_machine=i386-mach
611 +               os=-mach
612 +               ;;
613 +       i386-vsta | vsta)
614 +               basic_machine=i386-unknown
615 +               os=-vsta
616 +               ;;
617         iris | iris4d)
618                 basic_machine=mips-sgi
619                 case $os in
620 @@ -391,16 +679,16 @@
621                 basic_machine=ns32k-utek
622                 os=-sysv
623                 ;;
624 +       mingw32)
625 +               basic_machine=i386-pc
626 +               os=-mingw32
627 +               ;;
628         miniframe)
629                 basic_machine=m68000-convergent
630                 ;;
631 -       mipsel*-linux*)
632 -               basic_machine=mipsel-unknown
633 -               os=-linux-gnu
634 -               ;;
635 -       mips*-linux*)
636 -               basic_machine=mips-unknown
637 -               os=-linux-gnu
638 +       *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
639 +               basic_machine=m68k-atari
640 +               os=-mint
641                 ;;
642         mips3*-*)
643                 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
644 @@ -408,10 +696,37 @@
645         mips3*)
646                 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
647                 ;;
648 +       monitor)
649 +               basic_machine=m68k-rom68k
650 +               os=-coff
651 +               ;;
652 +       morphos)
653 +               basic_machine=powerpc-unknown
654 +               os=-morphos
655 +               ;;
656 +       msdos)
657 +               basic_machine=i386-pc
658 +               os=-msdos
659 +               ;;
660 +       ms1-*)
661 +               basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
662 +               ;;
663 +       mvs)
664 +               basic_machine=i370-ibm
665 +               os=-mvs
666 +               ;;
667         ncr3000)
668                 basic_machine=i486-ncr
669                 os=-sysv4
670                 ;;
671 +       netbsd386)
672 +               basic_machine=i386-unknown
673 +               os=-netbsd
674 +               ;;
675 +       netwinder)
676 +               basic_machine=armv4l-rebel
677 +               os=-linux
678 +               ;;
679         news | news700 | news800 | news900)
680                 basic_machine=m68k-sony
681                 os=-newsos
682 @@ -424,6 +739,10 @@
683                 basic_machine=mips-sony
684                 os=-newsos
685                 ;;
686 +       necv70)
687 +               basic_machine=v70-nec
688 +               os=-sysv
689 +               ;;
690         next | m*-next )
691                 basic_machine=m68k-next
692                 case $os in
693 @@ -449,9 +768,39 @@
694                 basic_machine=i960-intel
695                 os=-nindy
696                 ;;
697 +       mon960)
698 +               basic_machine=i960-intel
699 +               os=-mon960
700 +               ;;
701 +       nonstopux)
702 +               basic_machine=mips-compaq
703 +               os=-nonstopux
704 +               ;;
705         np1)
706                 basic_machine=np1-gould
707                 ;;
708 +       nsr-tandem)
709 +               basic_machine=nsr-tandem
710 +               ;;
711 +       op50n-* | op60c-*)
712 +               basic_machine=hppa1.1-oki
713 +               os=-proelf
714 +               ;;
715 +       openrisc | openrisc-*)
716 +               basic_machine=or32-unknown
717 +               ;;
718 +       os400)
719 +               basic_machine=powerpc-ibm
720 +               os=-os400
721 +               ;;
722 +       OSE68000 | ose68000)
723 +               basic_machine=m68000-ericsson
724 +               os=-ose
725 +               ;;
726 +       os68k)
727 +               basic_machine=m68k-none
728 +               os=-os68k
729 +               ;;
730         pa-hitachi)
731                 basic_machine=hppa1.1-hitachi
732                 os=-hiuxwe2
733 @@ -466,51 +815,109 @@
734         pbb)
735                 basic_machine=m68k-tti
736                 ;;
737 -        pc532 | pc532-*)
738 +       pc532 | pc532-*)
739                 basic_machine=ns32k-pc532
740                 ;;
741 -       pentium | p5 | k5 | nexen)
742 +       pc98)
743 +               basic_machine=i386-pc
744 +               ;;
745 +       pc98-*)
746 +               basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
747 +               ;;
748 +       pentium | p5 | k5 | k6 | nexgen | viac3)
749                 basic_machine=i586-pc
750                 ;;
751 -       pentiumpro | p6 | k6 | 6x86)
752 +       pentiumpro | p6 | 6x86 | athlon | athlon_*)
753                 basic_machine=i686-pc
754                 ;;
755 -       pentiumii | pentium2)
756 +       pentiumii | pentium2 | pentiumiii | pentium3)
757 +               basic_machine=i686-pc
758 +               ;;
759 +       pentium4)
760                 basic_machine=i786-pc
761                 ;;
762 -       pentium-* | p5-* | k5-* | nexen-*)
763 +       pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
764                 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
765                 ;;
766 -       pentiumpro-* | p6-* | k6-* | 6x86-*)
767 +       pentiumpro-* | p6-* | 6x86-* | athlon-*)
768 +               basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
769 +               ;;
770 +       pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
771                 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
772                 ;;
773 -       pentiumii-* | pentium2-*)
774 +       pentium4-*)
775                 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
776                 ;;
777         pn)
778                 basic_machine=pn-gould
779                 ;;
780 -       power)  basic_machine=rs6000-ibm
781 +       power)  basic_machine=power-ibm
782                 ;;
783         ppc)    basic_machine=powerpc-unknown
784 -               ;;
785 +               ;;
786         ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
787                 ;;
788         ppcle | powerpclittle | ppc-le | powerpc-little)
789                 basic_machine=powerpcle-unknown
790 -               ;;
791 +               ;;
792         ppcle-* | powerpclittle-*)
793                 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
794                 ;;
795 +       ppc64)  basic_machine=powerpc64-unknown
796 +               ;;
797 +       ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
798 +               ;;
799 +       ppc64le | powerpc64little | ppc64-le | powerpc64-little)
800 +               basic_machine=powerpc64le-unknown
801 +               ;;
802 +       ppc64le-* | powerpc64little-*)
803 +               basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
804 +               ;;
805         ps2)
806                 basic_machine=i386-ibm
807                 ;;
808 +       pw32)
809 +               basic_machine=i586-unknown
810 +               os=-pw32
811 +               ;;
812 +       rdos)
813 +               basic_machine=i386-pc
814 +               os=-rdos
815 +               ;;
816 +       rom68k)
817 +               basic_machine=m68k-rom68k
818 +               os=-coff
819 +               ;;
820         rm[46]00)
821                 basic_machine=mips-siemens
822                 ;;
823         rtpc | rtpc-*)
824                 basic_machine=romp-ibm
825                 ;;
826 +       s390 | s390-*)
827 +               basic_machine=s390-ibm
828 +               ;;
829 +       s390x | s390x-*)
830 +               basic_machine=s390x-ibm
831 +               ;;
832 +       sa29200)
833 +               basic_machine=a29k-amd
834 +               os=-udi
835 +               ;;
836 +       sb1)
837 +               basic_machine=mipsisa64sb1-unknown
838 +               ;;
839 +       sb1el)
840 +               basic_machine=mipsisa64sb1el-unknown
841 +               ;;
842 +       sde)
843 +               basic_machine=mipsisa32-sde
844 +               os=-elf
845 +               ;;
846 +       sei)
847 +               basic_machine=mips-sei
848 +               os=-seiux
849 +               ;;
850         sequent)
851                 basic_machine=i386-sequent
852                 ;;
853 @@ -518,6 +925,16 @@
854                 basic_machine=sh-hitachi
855                 os=-hms
856                 ;;
857 +       sh5el)
858 +               basic_machine=sh5le-unknown
859 +               ;;
860 +       sh64)
861 +               basic_machine=sh64-unknown
862 +               ;;
863 +       sparclite-wrs | simso-wrs)
864 +               basic_machine=sparclite-wrs
865 +               os=-vxworks
866 +               ;;
867         sps7)
868                 basic_machine=m68k-bull
869                 os=-sysv2
870 @@ -525,6 +942,13 @@
871         spur)
872                 basic_machine=spur-unknown
873                 ;;
874 +       st2000)
875 +               basic_machine=m68k-tandem
876 +               ;;
877 +       stratus)
878 +               basic_machine=i860-stratus
879 +               os=-sysv4
880 +               ;;
881         sun2)
882                 basic_machine=m68000-sun
883                 ;;
884 @@ -565,19 +989,51 @@
885         sun386 | sun386i | roadrunner)
886                 basic_machine=i386-sun
887                 ;;
888 +       sv1)
889 +               basic_machine=sv1-cray
890 +               os=-unicos
891 +               ;;
892         symmetry)
893                 basic_machine=i386-sequent
894                 os=-dynix
895                 ;;
896 +       t3e)
897 +               basic_machine=alphaev5-cray
898 +               os=-unicos
899 +               ;;
900 +       t90)
901 +               basic_machine=t90-cray
902 +               os=-unicos
903 +               ;;
904 +       tic54x | c54x*)
905 +               basic_machine=tic54x-unknown
906 +               os=-coff
907 +               ;;
908 +       tic55x | c55x*)
909 +               basic_machine=tic55x-unknown
910 +               os=-coff
911 +               ;;
912 +       tic6x | c6x*)
913 +               basic_machine=tic6x-unknown
914 +               os=-coff
915 +               ;;
916         tx39)
917                 basic_machine=mipstx39-unknown
918                 ;;
919         tx39el)
920                 basic_machine=mipstx39el-unknown
921                 ;;
922 +       toad1)
923 +               basic_machine=pdp10-xkl
924 +               os=-tops20
925 +               ;;
926         tower | tower-32)
927                 basic_machine=m68k-ncr
928                 ;;
929 +       tpf)
930 +               basic_machine=s390x-ibm
931 +               os=-tpf
932 +               ;;
933         udi29k)
934                 basic_machine=a29k-amd
935                 os=-udi
936 @@ -586,6 +1042,10 @@
937                 basic_machine=a29k-nyu
938                 os=-sym1
939                 ;;
940 +       v810 | necv810)
941 +               basic_machine=v810-nec
942 +               os=-none
943 +               ;;
944         vaxv)
945                 basic_machine=vax-dec
946                 os=-sysv
947 @@ -595,8 +1055,8 @@
948                 os=-vms
949                 ;;
950         vpp*|vx|vx-*)
951 -               basic_machine=f301-fujitsu
952 -               ;;
953 +               basic_machine=f301-fujitsu
954 +               ;;
955         vxworks960)
956                 basic_machine=i960-wrs
957                 os=-vxworks
958 @@ -609,13 +1069,29 @@
959                 basic_machine=a29k-wrs
960                 os=-vxworks
961                 ;;
962 -       xmp)
963 -               basic_machine=xmp-cray
964 -               os=-unicos
965 +       w65*)
966 +               basic_machine=w65-wdc
967 +               os=-none
968 +               ;;
969 +       w89k-*)
970 +               basic_machine=hppa1.1-winbond
971 +               os=-proelf
972 +               ;;
973 +       xbox)
974 +               basic_machine=i686-pc
975 +               os=-mingw32
976                 ;;
977 -        xps | xps100)
978 +       xps | xps100)
979                 basic_machine=xps100-honeywell
980                 ;;
981 +       ymp)
982 +               basic_machine=ymp-cray
983 +               os=-unicos
984 +               ;;
985 +       z8k-*-coff)
986 +               basic_machine=z8k-unknown
987 +               os=-sim
988 +               ;;
989         none)
990                 basic_machine=none-none
991                 os=-none
992 @@ -623,32 +1099,44 @@
993  
994  # Here we handle the default manufacturer of certain CPU types.  It is in
995  # some cases the only manufacturer, in others, it is the most popular.
996 -       mips)
997 -               if [ x$os = x-linux-gnu ]; then
998 -                       basic_machine=mips-unknown
999 -               else
1000 -                       basic_machine=mips-mips
1001 -               fi
1002 +       w89k)
1003 +               basic_machine=hppa1.1-winbond
1004 +               ;;
1005 +       op50n)
1006 +               basic_machine=hppa1.1-oki
1007 +               ;;
1008 +       op60c)
1009 +               basic_machine=hppa1.1-oki
1010                 ;;
1011         romp)
1012                 basic_machine=romp-ibm
1013                 ;;
1014 +       mmix)
1015 +               basic_machine=mmix-knuth
1016 +               ;;
1017         rs6000)
1018                 basic_machine=rs6000-ibm
1019                 ;;
1020         vax)
1021                 basic_machine=vax-dec
1022                 ;;
1023 +       pdp10)
1024 +               # there are many clones, so DEC is not a safe bet
1025 +               basic_machine=pdp10-unknown
1026 +               ;;
1027         pdp11)
1028                 basic_machine=pdp11-dec
1029                 ;;
1030         we32k)
1031                 basic_machine=we32k-att
1032                 ;;
1033 -       sparc)
1034 +       sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1035 +               basic_machine=sh-unknown
1036 +               ;;
1037 +       sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1038                 basic_machine=sparc-sun
1039                 ;;
1040 -        cydra)
1041 +       cydra)
1042                 basic_machine=cydra-cydrome
1043                 ;;
1044         orion)
1045 @@ -657,6 +1145,15 @@
1046         orion105)
1047                 basic_machine=clipper-highlevel
1048                 ;;
1049 +       mac | mpw | mac-mpw)
1050 +               basic_machine=m68k-apple
1051 +               ;;
1052 +       pmac | pmac-mpw)
1053 +               basic_machine=powerpc-apple
1054 +               ;;
1055 +       *-unknown)
1056 +               # Make sure to match an already-canonicalized machine name.
1057 +               ;;
1058         *)
1059                 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1060                 exit 1
1061 @@ -709,14 +1206,49 @@
1062               | -aos* \
1063               | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1064               | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1065 -             | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1066 -             | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
1067 +             | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1068 +             | -openbsd* | -solidbsd* \
1069 +             | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1070 +             | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1071               | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1072               | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1073 +             | -chorusos* | -chorusrdb* \
1074               | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1075 -             | -mingw32* | -linux-gnu* | -uxpv* | -beos*)
1076 +             | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1077 +             | -uxpv* | -beos* | -mpeix* | -udk* \
1078 +             | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1079 +             | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1080 +             | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1081 +             | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1082 +             | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1083 +             | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1084 +             | -skyos* | -haiku* | -rdos* | -toppers*)
1085         # Remember, each alternative MUST END IN *, to match a version number.
1086                 ;;
1087 +       -qnx*)
1088 +               case $basic_machine in
1089 +                   x86-* | i*86-*)
1090 +                       ;;
1091 +                   *)
1092 +                       os=-nto$os
1093 +                       ;;
1094 +               esac
1095 +               ;;
1096 +       -nto-qnx*)
1097 +               ;;
1098 +       -nto*)
1099 +               os=`echo $os | sed -e 's|nto|nto-qnx|'`
1100 +               ;;
1101 +       -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1102 +             | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1103 +             | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1104 +               ;;
1105 +       -mac*)
1106 +               os=`echo $os | sed -e 's|mac|macos|'`
1107 +               ;;
1108 +       -linux-dietlibc)
1109 +               os=-linux-dietlibc
1110 +               ;;
1111         -linux*)
1112                 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1113                 ;;
1114 @@ -726,6 +1258,15 @@
1115         -sunos6*)
1116                 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1117                 ;;
1118 +       -opened*)
1119 +               os=-openedition
1120 +               ;;
1121 +        -os400*)
1122 +               os=-os400
1123 +               ;;
1124 +       -wince*)
1125 +               os=-wince
1126 +               ;;
1127         -osfrose*)
1128                 os=-osfrose
1129                 ;;
1130 @@ -741,11 +1282,26 @@
1131         -acis*)
1132                 os=-aos
1133                 ;;
1134 +       -atheos*)
1135 +               os=-atheos
1136 +               ;;
1137 +       -syllable*)
1138 +               os=-syllable
1139 +               ;;
1140 +       -386bsd)
1141 +               os=-bsd
1142 +               ;;
1143         -ctix* | -uts*)
1144                 os=-sysv
1145                 ;;
1146 +       -nova*)
1147 +               os=-rtmk-nova
1148 +               ;;
1149         -ns2 )
1150 -               os=-nextstep2
1151 +               os=-nextstep2
1152 +               ;;
1153 +       -nsk*)
1154 +               os=-nsk
1155                 ;;
1156         # Preserve the version number of sinix5.
1157         -sinix5.*)
1158 @@ -754,6 +1310,9 @@
1159         -sinix*)
1160                 os=-sysv4
1161                 ;;
1162 +        -tpf*)
1163 +               os=-tpf
1164 +               ;;
1165         -triton*)
1166                 os=-sysv3
1167                 ;;
1168 @@ -772,9 +1331,27 @@
1169         # This must come after -sysvr4.
1170         -sysv*)
1171                 ;;
1172 +       -ose*)
1173 +               os=-ose
1174 +               ;;
1175 +       -es1800*)
1176 +               os=-ose
1177 +               ;;
1178         -xenix)
1179                 os=-xenix
1180                 ;;
1181 +       -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1182 +               os=-mint
1183 +               ;;
1184 +       -aros*)
1185 +               os=-aros
1186 +               ;;
1187 +       -kaos*)
1188 +               os=-kaos
1189 +               ;;
1190 +       -zvmoe)
1191 +               os=-zvmoe
1192 +               ;;
1193         -none)
1194                 ;;
1195         *)
1196 @@ -797,13 +1374,29 @@
1197  # system, and we'll never get to this point.
1198  
1199  case $basic_machine in
1200 +        score-*)
1201 +               os=-elf
1202 +               ;;
1203 +        spu-*)
1204 +               os=-elf
1205 +               ;;
1206         *-acorn)
1207                 os=-riscix1.2
1208                 ;;
1209 +       arm*-rebel)
1210 +               os=-linux
1211 +               ;;
1212         arm*-semi)
1213                 os=-aout
1214                 ;;
1215 -        pdp11-*)
1216 +        c4x-* | tic4x-*)
1217 +               os=-coff
1218 +               ;;
1219 +       # This must come before the *-dec entry.
1220 +       pdp10-*)
1221 +               os=-tops20
1222 +               ;;
1223 +       pdp11-*)
1224                 os=-none
1225                 ;;
1226         *-dec | vax-*)
1227 @@ -821,6 +1414,18 @@
1228                 # default.
1229                 # os=-sunos4
1230                 ;;
1231 +       m68*-cisco)
1232 +               os=-aout
1233 +               ;;
1234 +       mips*-cisco)
1235 +               os=-elf
1236 +               ;;
1237 +       mips*-*)
1238 +               os=-elf
1239 +               ;;
1240 +       or32-*)
1241 +               os=-coff
1242 +               ;;
1243         *-tti)  # must be before sparc entry or we get the wrong os.
1244                 os=-sysv3
1245                 ;;
1246 @@ -830,9 +1435,24 @@
1247         *-be)
1248                 os=-beos
1249                 ;;
1250 +       *-haiku)
1251 +               os=-haiku
1252 +               ;;
1253         *-ibm)
1254                 os=-aix
1255                 ;;
1256 +       *-knuth)
1257 +               os=-mmixware
1258 +               ;;
1259 +       *-wec)
1260 +               os=-proelf
1261 +               ;;
1262 +       *-winbond)
1263 +               os=-proelf
1264 +               ;;
1265 +       *-oki)
1266 +               os=-proelf
1267 +               ;;
1268         *-hp)
1269                 os=-hpux
1270                 ;;
1271 @@ -875,27 +1495,39 @@
1272         *-next)
1273                 os=-nextstep3
1274                 ;;
1275 -        *-gould)
1276 +       *-gould)
1277                 os=-sysv
1278                 ;;
1279 -        *-highlevel)
1280 +       *-highlevel)
1281                 os=-bsd
1282                 ;;
1283         *-encore)
1284                 os=-bsd
1285                 ;;
1286 -        *-sgi)
1287 +       *-sgi)
1288                 os=-irix
1289                 ;;
1290 -        *-siemens)
1291 +       *-siemens)
1292                 os=-sysv4
1293                 ;;
1294         *-masscomp)
1295                 os=-rtu
1296                 ;;
1297 -       f301-fujitsu)
1298 +       f30[01]-fujitsu | f700-fujitsu)
1299                 os=-uxpv
1300                 ;;
1301 +       *-rom68k)
1302 +               os=-coff
1303 +               ;;
1304 +       *-*bug)
1305 +               os=-coff
1306 +               ;;
1307 +       *-apple)
1308 +               os=-macos
1309 +               ;;
1310 +       *-atari*)
1311 +               os=-mint
1312 +               ;;
1313         *)
1314                 os=-none
1315                 ;;
1316 @@ -917,9 +1549,15 @@
1317                         -aix*)
1318                                 vendor=ibm
1319                                 ;;
1320 +                       -beos*)
1321 +                               vendor=be
1322 +                               ;;
1323                         -hpux*)
1324                                 vendor=hp
1325                                 ;;
1326 +                       -mpeix*)
1327 +                               vendor=hp
1328 +                               ;;
1329                         -hiux*)
1330                                 vendor=hitachi
1331                                 ;;
1332 @@ -935,21 +1573,47 @@
1333                         -genix*)
1334                                 vendor=ns
1335                                 ;;
1336 -                       -mvs*)
1337 +                       -mvs* | -opened*)
1338 +                               vendor=ibm
1339 +                               ;;
1340 +                       -os400*)
1341                                 vendor=ibm
1342                                 ;;
1343                         -ptx*)
1344                                 vendor=sequent
1345                                 ;;
1346 -                       -vxsim* | -vxworks*)
1347 +                       -tpf*)
1348 +                               vendor=ibm
1349 +                               ;;
1350 +                       -vxsim* | -vxworks* | -windiss*)
1351                                 vendor=wrs
1352                                 ;;
1353                         -aux*)
1354                                 vendor=apple
1355                                 ;;
1356 +                       -hms*)
1357 +                               vendor=hitachi
1358 +                               ;;
1359 +                       -mpw* | -macos*)
1360 +                               vendor=apple
1361 +                               ;;
1362 +                       -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1363 +                               vendor=atari
1364 +                               ;;
1365 +                       -vos*)
1366 +                               vendor=stratus
1367 +                               ;;
1368                 esac
1369                 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1370                 ;;
1371  esac
1372  
1373  echo $basic_machine$os
1374 +exit
1375 +
1376 +# Local variables:
1377 +# eval: (add-hook 'write-file-hooks 'time-stamp)
1378 +# time-stamp-start: "timestamp='"
1379 +# time-stamp-format: "%:y-%02m-%02d"
1380 +# time-stamp-end: "'"
1381 +# End:
Note: See TracBrowser for help on using the browser.