~ubuntu-branches/debian/jessie/gsmlib/jessie

« back to all changes in this revision

Viewing changes to scripts/config.sub

  • Committer: Package Import Robot
  • Author(s): Andrew Shadura
  • Date: 2013-10-15 13:29:27 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20131015132927-1i5iwvj21wue3uvu
Tags: 1.10+20120414.gita5e5ae9a-0.1
* Non-maintainer upload.
* Update to the latest Git version by Vianney Bouchaud.
* Use 3.0 (quilt) source package format.
* Own the run subdirectory (Closes: #689891).
* Don't remove the system user on package remove.
* Fix init script (LP: #30228).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Configuration validation subroutine script.
3
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
 
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5
 
#   2011, 2012 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2012-04-18'
 
7
timestamp='2008-01-16'
8
8
 
9
9
# This file is (in principle) common to ALL GNU software.
10
10
# The presence of a machine in this file suggests that SOME GNU software
21
21
# GNU General Public License for more details.
22
22
#
23
23
# You should have received a copy of the GNU General Public License
24
 
# along with this program; if not, see <http://www.gnu.org/licenses/>.
 
24
# along with this program; if not, write to the Free Software
 
25
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
 
26
# 02110-1301, USA.
25
27
#
26
28
# As a special exception to the GNU General Public License, if you
27
29
# distribute this file as part of a program that contains a
30
32
 
31
33
 
32
34
# Please send patches to <config-patches@gnu.org>.  Submit a context
33
 
# diff and a properly formatted GNU ChangeLog entry.
 
35
# diff and a properly formatted ChangeLog entry.
34
36
#
35
37
# Configuration subroutine to validate and canonicalize a configuration type.
36
38
# Supply the specified configuration type as an argument.
37
39
# If it is invalid, we print an error message on stderr and exit with code 1.
38
40
# Otherwise, we print the canonical config type on stdout and succeed.
39
41
 
40
 
# You can get the latest version of this script from:
41
 
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
42
 
 
43
42
# This file is supposed to be the same for all GNU packages
44
43
# and recognize all the CPU types, system types and aliases
45
44
# that are meaningful with *any* GNU software.
73
72
version="\
74
73
GNU config.sub ($timestamp)
75
74
 
76
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
77
 
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
78
 
Free Software Foundation, Inc.
 
75
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
 
76
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
79
77
 
80
78
This is free software; see the source for copying conditions.  There is NO
81
79
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
122
120
# Here we must recognize all the valid KERNEL-OS combinations.
123
121
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
124
122
case $maybe_os in
125
 
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
126
 
  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
127
 
  knetbsd*-gnu* | netbsd*-gnu* | \
128
 
  kopensolaris*-gnu* | \
 
123
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
 
124
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
129
125
  storm-chaos* | os2-emx* | rtmk-nova*)
130
126
    os=-$maybe_os
131
127
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
132
128
    ;;
133
 
  android-linux)
134
 
    os=-linux-android
135
 
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
136
 
    ;;
137
129
  *)
138
130
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
139
131
    if [ $basic_machine != $1 ]
156
148
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
157
149
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
158
150
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
159
 
        -apple | -axis | -knuth | -cray | -microblaze)
 
151
        -apple | -axis | -knuth | -cray)
160
152
                os=
161
153
                basic_machine=$1
162
154
                ;;
163
 
        -bluegene*)
164
 
                os=-cnk
165
 
                ;;
166
155
        -sim | -cisco | -oki | -wec | -winbond)
167
156
                os=
168
157
                basic_machine=$1
177
166
                os=-chorusos
178
167
                basic_machine=$1
179
168
                ;;
180
 
        -chorusrdb)
181
 
                os=-chorusrdb
 
169
        -chorusrdb)
 
170
                os=-chorusrdb
182
171
                basic_machine=$1
183
 
                ;;
 
172
                ;;
184
173
        -hiux*)
185
174
                os=-hiuxwe2
186
175
                ;;
225
214
        -isc*)
226
215
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
227
216
                ;;
228
 
        -lynx*178)
229
 
                os=-lynxos178
230
 
                ;;
231
 
        -lynx*5)
232
 
                os=-lynxos5
233
 
                ;;
234
217
        -lynx*)
235
218
                os=-lynxos
236
219
                ;;
255
238
        # Some are omitted here because they have special meanings below.
256
239
        1750a | 580 \
257
240
        | a29k \
258
 
        | aarch64 | aarch64_be \
259
241
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
260
242
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
261
243
        | am33_2.0 \
262
244
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
263
 
        | be32 | be64 \
264
245
        | bfin \
265
246
        | c4x | clipper \
266
247
        | d10v | d30v | dlx | dsp16xx \
267
 
        | epiphany \
268
248
        | fido | fr30 | frv \
269
249
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
270
 
        | hexagon \
271
250
        | i370 | i860 | i960 | ia64 \
272
251
        | ip2k | iq2000 \
273
 
        | le32 | le64 \
274
 
        | lm32 \
275
252
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
276
 
        | maxq | mb | microblaze | mcore | mep | metag \
 
253
        | maxq | mb | microblaze | mcore | mep \
277
254
        | mips | mipsbe | mipseb | mipsel | mipsle \
278
255
        | mips16 \
279
256
        | mips64 | mips64el \
280
 
        | mips64octeon | mips64octeonel \
 
257
        | mips64vr | mips64vrel \
281
258
        | mips64orion | mips64orionel \
282
 
        | mips64r5900 | mips64r5900el \
283
 
        | mips64vr | mips64vrel \
284
259
        | mips64vr4100 | mips64vr4100el \
285
260
        | mips64vr4300 | mips64vr4300el \
286
261
        | mips64vr5000 | mips64vr5000el \
293
268
        | mipsisa64sr71k | mipsisa64sr71kel \
294
269
        | mipstx39 | mipstx39el \
295
270
        | mn10200 | mn10300 \
296
 
        | moxie \
297
271
        | mt \
298
272
        | msp430 \
299
 
        | nds32 | nds32le | nds32be \
300
273
        | nios | nios2 \
301
274
        | ns16k | ns32k \
302
 
        | open8 \
303
275
        | or32 \
304
276
        | pdp10 | pdp11 | pj | pjl \
305
 
        | powerpc | powerpc64 | powerpc64le | powerpcle \
 
277
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
306
278
        | pyramid \
307
 
        | rl78 | rx \
308
279
        | score \
309
 
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
 
280
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
310
281
        | sh64 | sh64le \
311
282
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
312
283
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
313
 
        | spu \
314
 
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
315
 
        | ubicom32 \
316
 
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
 
284
        | spu | strongarm \
 
285
        | tahoe | thumb | tic4x | tic80 | tron \
 
286
        | v850 | v850e \
317
287
        | we32k \
318
 
        | x86 | xc16x | xstormy16 | xtensa \
319
 
        | z8k | z80)
 
288
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
 
289
        | z8k)
320
290
                basic_machine=$basic_machine-unknown
321
291
                ;;
322
 
        c54x)
323
 
                basic_machine=tic54x-unknown
324
 
                ;;
325
 
        c55x)
326
 
                basic_machine=tic55x-unknown
327
 
                ;;
328
 
        c6x)
329
 
                basic_machine=tic6x-unknown
330
 
                ;;
331
 
        m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
 
292
        m6811 | m68hc11 | m6812 | m68hc12)
 
293
                # Motorola 68HC11/12.
332
294
                basic_machine=$basic_machine-unknown
333
295
                os=-none
334
296
                ;;
338
300
                basic_machine=mt-unknown
339
301
                ;;
340
302
 
341
 
        strongarm | thumb | xscale)
342
 
                basic_machine=arm-unknown
343
 
                ;;
344
 
        xgate)
345
 
                basic_machine=$basic_machine-unknown
346
 
                os=-none
347
 
                ;;
348
 
        xscaleeb)
349
 
                basic_machine=armeb-unknown
350
 
                ;;
351
 
 
352
 
        xscaleel)
353
 
                basic_machine=armel-unknown
354
 
                ;;
355
 
 
356
303
        # We use `pc' rather than `unknown'
357
304
        # because (1) that's what they normally are, and
358
305
        # (2) the word "unknown" tends to confuse beginning users.
367
314
        # Recognize the basic CPU types with company name.
368
315
        580-* \
369
316
        | a29k-* \
370
 
        | aarch64-* | aarch64_be-* \
371
317
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
372
318
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
373
319
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
374
320
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
375
321
        | avr-* | avr32-* \
376
 
        | be32-* | be64-* \
377
322
        | bfin-* | bs2000-* \
378
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
 
323
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
379
324
        | clipper-* | craynv-* | cydra-* \
380
325
        | d10v-* | d30v-* | dlx-* \
381
326
        | elxsi-* \
382
327
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
383
328
        | h8300-* | h8500-* \
384
329
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
385
 
        | hexagon-* \
386
330
        | i*86-* | i860-* | i960-* | ia64-* \
387
331
        | ip2k-* | iq2000-* \
388
 
        | le32-* | le64-* \
389
 
        | lm32-* \
390
332
        | m32c-* | m32r-* | m32rle-* \
391
333
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
392
 
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
 
334
        | m88110-* | m88k-* | maxq-* | mcore-* \
393
335
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
394
336
        | mips16-* \
395
337
        | mips64-* | mips64el-* \
396
 
        | mips64octeon-* | mips64octeonel-* \
 
338
        | mips64vr-* | mips64vrel-* \
397
339
        | mips64orion-* | mips64orionel-* \
398
 
        | mips64r5900-* | mips64r5900el-* \
399
 
        | mips64vr-* | mips64vrel-* \
400
340
        | mips64vr4100-* | mips64vr4100el-* \
401
341
        | mips64vr4300-* | mips64vr4300el-* \
402
342
        | mips64vr5000-* | mips64vr5000el-* \
411
351
        | mmix-* \
412
352
        | mt-* \
413
353
        | msp430-* \
414
 
        | nds32-* | nds32le-* | nds32be-* \
415
354
        | nios-* | nios2-* \
416
355
        | none-* | np1-* | ns16k-* | ns32k-* \
417
 
        | open8-* \
418
356
        | orion-* \
419
357
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
420
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
 
358
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
421
359
        | pyramid-* \
422
 
        | rl78-* | romp-* | rs6000-* | rx-* \
423
 
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
 
360
        | romp-* | rs6000-* \
 
361
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
424
362
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
425
363
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
426
364
        | sparclite-* \
427
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
428
 
        | tahoe-* \
 
365
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
 
366
        | tahoe-* | thumb-* \
429
367
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
430
 
        | tile*-* \
431
368
        | tron-* \
432
 
        | ubicom32-* \
433
 
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
434
 
        | vax-* \
 
369
        | v850-* | v850e-* | vax-* \
435
370
        | we32k-* \
436
 
        | x86-* | x86_64-* | xc16x-* | xps100-* \
 
371
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
437
372
        | xstormy16-* | xtensa*-* \
438
373
        | ymp-* \
439
 
        | z8k-* | z80-*)
 
374
        | z8k-*)
440
375
                ;;
441
376
        # Recognize the basic CPU types without company name, with glob match.
442
377
        xtensa*)
458
393
                basic_machine=a29k-amd
459
394
                os=-udi
460
395
                ;;
461
 
        abacus)
 
396
        abacus)
462
397
                basic_machine=abacus-unknown
463
398
                ;;
464
399
        adobe68k)
504
439
                basic_machine=m68k-apollo
505
440
                os=-bsd
506
441
                ;;
507
 
        aros)
508
 
                basic_machine=i386-pc
509
 
                os=-aros
510
 
                ;;
511
442
        aux)
512
443
                basic_machine=m68k-apple
513
444
                os=-aux
524
455
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
525
456
                os=-linux
526
457
                ;;
527
 
        bluegene*)
528
 
                basic_machine=powerpc-ibm
529
 
                os=-cnk
530
 
                ;;
531
 
        c54x-*)
532
 
                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
533
 
                ;;
534
 
        c55x-*)
535
 
                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
536
 
                ;;
537
 
        c6x-*)
538
 
                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
539
 
                ;;
540
458
        c90)
541
459
                basic_machine=c90-cray
542
460
                os=-unicos
543
461
                ;;
544
 
        cegcc)
545
 
                basic_machine=arm-unknown
546
 
                os=-cegcc
547
 
                ;;
548
462
        convex-c1)
549
463
                basic_machine=c1-convex
550
464
                os=-bsd
573
487
                basic_machine=craynv-cray
574
488
                os=-unicosmp
575
489
                ;;
576
 
        cr16 | cr16-*)
 
490
        cr16)
577
491
                basic_machine=cr16-unknown
578
492
                os=-elf
579
493
                ;;
612
526
                basic_machine=m88k-motorola
613
527
                os=-sysv3
614
528
                ;;
615
 
        dicos)
616
 
                basic_machine=i686-pc
617
 
                os=-dicos
618
 
                ;;
619
529
        djgpp)
620
530
                basic_machine=i586-pc
621
531
                os=-msdosdjgpp
731
641
        i370-ibm* | ibm*)
732
642
                basic_machine=i370-ibm
733
643
                ;;
 
644
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
734
645
        i*86v32)
735
646
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
736
647
                os=-sysv32
788
699
                basic_machine=ns32k-utek
789
700
                os=-sysv
790
701
                ;;
791
 
        microblaze)
792
 
                basic_machine=microblaze-xilinx
793
 
                ;;
794
702
        mingw32)
795
703
                basic_machine=i386-pc
796
704
                os=-mingw32
827
735
        ms1-*)
828
736
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
829
737
                ;;
830
 
        msys)
831
 
                basic_machine=i386-pc
832
 
                os=-msys
833
 
                ;;
834
738
        mvs)
835
739
                basic_machine=i370-ibm
836
740
                os=-mvs
837
741
                ;;
838
 
        nacl)
839
 
                basic_machine=le32-unknown
840
 
                os=-nacl
841
 
                ;;
842
742
        ncr3000)
843
743
                basic_machine=i486-ncr
844
744
                os=-sysv4
903
803
        np1)
904
804
                basic_machine=np1-gould
905
805
                ;;
906
 
        neo-tandem)
907
 
                basic_machine=neo-tandem
908
 
                ;;
909
 
        nse-tandem)
910
 
                basic_machine=nse-tandem
911
 
                ;;
912
806
        nsr-tandem)
913
807
                basic_machine=nsr-tandem
914
808
                ;;
991
885
                ;;
992
886
        power)  basic_machine=power-ibm
993
887
                ;;
994
 
        ppc | ppcbe)    basic_machine=powerpc-unknown
 
888
        ppc)    basic_machine=powerpc-unknown
995
889
                ;;
996
 
        ppc-* | ppcbe-*)
997
 
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
890
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
998
891
                ;;
999
892
        ppcle | powerpclittle | ppc-le | powerpc-little)
1000
893
                basic_machine=powerpcle-unknown
1088
981
                basic_machine=i860-stratus
1089
982
                os=-sysv4
1090
983
                ;;
1091
 
        strongarm-* | thumb-*)
1092
 
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1093
 
                ;;
1094
984
        sun2)
1095
985
                basic_machine=m68000-sun
1096
986
                ;;
1147
1037
                basic_machine=t90-cray
1148
1038
                os=-unicos
1149
1039
                ;;
 
1040
        tic54x | c54x*)
 
1041
                basic_machine=tic54x-unknown
 
1042
                os=-coff
 
1043
                ;;
 
1044
        tic55x | c55x*)
 
1045
                basic_machine=tic55x-unknown
 
1046
                os=-coff
 
1047
                ;;
 
1048
        tic6x | c6x*)
 
1049
                basic_machine=tic6x-unknown
 
1050
                os=-coff
 
1051
                ;;
1150
1052
        tile*)
1151
 
                basic_machine=$basic_machine-unknown
 
1053
                basic_machine=tile-unknown
1152
1054
                os=-linux-gnu
1153
1055
                ;;
1154
1056
        tx39)
1218
1120
        xps | xps100)
1219
1121
                basic_machine=xps100-honeywell
1220
1122
                ;;
1221
 
        xscale-* | xscalee[bl]-*)
1222
 
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1223
 
                ;;
1224
1123
        ymp)
1225
1124
                basic_machine=ymp-cray
1226
1125
                os=-unicos
1229
1128
                basic_machine=z8k-unknown
1230
1129
                os=-sim
1231
1130
                ;;
1232
 
        z80-*-coff)
1233
 
                basic_machine=z80-unknown
1234
 
                os=-sim
1235
 
                ;;
1236
1131
        none)
1237
1132
                basic_machine=none-none
1238
1133
                os=-none
1271
1166
        we32k)
1272
1167
                basic_machine=we32k-att
1273
1168
                ;;
1274
 
        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
 
1169
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1275
1170
                basic_machine=sh-unknown
1276
1171
                ;;
1277
1172
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1318
1213
if [ x"$os" != x"" ]
1319
1214
then
1320
1215
case $os in
1321
 
        # First match some system type aliases
1322
 
        # that might get confused with valid system types.
 
1216
        # First match some system type aliases
 
1217
        # that might get confused with valid system types.
1323
1218
        # -solaris* is a basic system type, with this one exception.
1324
 
        -auroraux)
1325
 
                os=-auroraux
1326
 
                ;;
1327
1219
        -solaris1 | -solaris1.*)
1328
1220
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1329
1221
                ;;
1344
1236
        # Each alternative MUST END IN A *, to match a version number.
1345
1237
        # -sysv* is not here because it comes later, after sysvr4.
1346
1238
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1347
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1348
 
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1349
 
              | -sym* | -kopensolaris* \
 
1239
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
 
1240
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1350
1241
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1351
 
              | -aos* | -aros* \
 
1242
              | -aos* \
1352
1243
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1353
1244
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1354
1245
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1357
1248
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1358
1249
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1359
1250
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1360
 
              | -chorusos* | -chorusrdb* | -cegcc* \
1361
 
              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1362
 
              | -mingw32* | -linux-gnu* | -linux-android* \
1363
 
              | -linux-newlib* | -linux-uclibc* \
 
1251
              | -chorusos* | -chorusrdb* \
 
1252
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
 
1253
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1364
1254
              | -uxpv* | -beos* | -mpeix* | -udk* \
1365
1255
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1366
1256
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1368
1258
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1369
1259
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1370
1260
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1371
 
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
 
1261
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1372
1262
        # Remember, each alternative MUST END IN *, to match a version number.
1373
1263
                ;;
1374
1264
        -qnx*)
1407
1297
        -opened*)
1408
1298
                os=-openedition
1409
1299
                ;;
1410
 
        -os400*)
 
1300
        -os400*)
1411
1301
                os=-os400
1412
1302
                ;;
1413
1303
        -wince*)
1456
1346
        -sinix*)
1457
1347
                os=-sysv4
1458
1348
                ;;
1459
 
        -tpf*)
 
1349
        -tpf*)
1460
1350
                os=-tpf
1461
1351
                ;;
1462
1352
        -triton*)
1498
1388
        -zvmoe)
1499
1389
                os=-zvmoe
1500
1390
                ;;
1501
 
        -dicos*)
1502
 
                os=-dicos
1503
 
                ;;
1504
 
        -nacl*)
1505
 
                ;;
1506
1391
        -none)
1507
1392
                ;;
1508
1393
        *)
1525
1410
# system, and we'll never get to this point.
1526
1411
 
1527
1412
case $basic_machine in
1528
 
        score-*)
 
1413
        score-*)
1529
1414
                os=-elf
1530
1415
                ;;
1531
 
        spu-*)
 
1416
        spu-*)
1532
1417
                os=-elf
1533
1418
                ;;
1534
1419
        *-acorn)
1540
1425
        arm*-semi)
1541
1426
                os=-aout
1542
1427
                ;;
1543
 
        c4x-* | tic4x-*)
1544
 
                os=-coff
1545
 
                ;;
1546
 
        hexagon-*)
1547
 
                os=-elf
1548
 
                ;;
1549
 
        tic54x-*)
1550
 
                os=-coff
1551
 
                ;;
1552
 
        tic55x-*)
1553
 
                os=-coff
1554
 
                ;;
1555
 
        tic6x-*)
1556
 
                os=-coff
 
1428
        c4x-* | tic4x-*)
 
1429
                os=-coff
1557
1430
                ;;
1558
1431
        # This must come before the *-dec entry.
1559
1432
        pdp10-*)
1573
1446
                ;;
1574
1447
        m68000-sun)
1575
1448
                os=-sunos3
 
1449
                # This also exists in the configure program, but was not the
 
1450
                # default.
 
1451
                # os=-sunos4
1576
1452
                ;;
1577
1453
        m68*-cisco)
1578
1454
                os=-aout
1579
1455
                ;;
1580
 
        mep-*)
 
1456
        mep-*)
1581
1457
                os=-elf
1582
1458
                ;;
1583
1459
        mips*-cisco)
1604
1480
        *-ibm)
1605
1481
                os=-aix
1606
1482
                ;;
1607
 
        *-knuth)
 
1483
        *-knuth)
1608
1484
                os=-mmixware
1609
1485
                ;;
1610
1486
        *-wec)
1709
1585
                        -sunos*)
1710
1586
                                vendor=sun
1711
1587
                                ;;
1712
 
                        -cnk*|-aix*)
 
1588
                        -aix*)
1713
1589
                                vendor=ibm
1714
1590
                                ;;
1715
1591
                        -beos*)