~ubuntu-branches/ubuntu/trusty/libnih/trusty

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Dmitrijs Ledkovs
  • Date: 2013-11-12 13:20:53 UTC
  • mto: This revision was merged to the branch mainline in revision 1081.
  • Revision ID: dmitrijs.ledkovs@canonical.com-20131112132053-27y2f89g6whr5bna
releasing package libnih version 1.0.3-4ubuntu24

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Configuration validation subroutine script.
3
 
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
 
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5
 
#   Free Software Foundation, Inc.
6
 
 
7
 
timestamp='2010-01-22'
8
 
 
9
 
# This file is (in principle) common to ALL GNU software.
10
 
# The presence of a machine in this file suggests that SOME GNU software
11
 
# can handle that machine.  It does not imply ALL GNU software can.
12
 
#
13
 
# This file is free software; you can redistribute it and/or modify
14
 
# it under the terms of the GNU General Public License as published by
15
 
# the Free Software Foundation; either version 2 of the License, or
 
3
#   Copyright 1992-2013 Free Software Foundation, Inc.
 
4
 
 
5
timestamp='2013-08-10'
 
6
 
 
7
# This file is free software; you can redistribute it and/or modify it
 
8
# under the terms of the GNU General Public License as published by
 
9
# the Free Software Foundation; either version 3 of the License, or
16
10
# (at your option) any later version.
17
11
#
18
 
# This program is distributed in the hope that it will be useful,
19
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
 
# GNU General Public License for more details.
 
12
# This program is distributed in the hope that it will be useful, but
 
13
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
# General Public License for more details.
22
16
#
23
17
# You should have received a copy of the GNU General Public License
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.
 
18
# along with this program; if not, see <http://www.gnu.org/licenses/>.
27
19
#
28
20
# As a special exception to the GNU General Public License, if you
29
21
# distribute this file as part of a program that contains a
30
22
# configuration script generated by Autoconf, you may include it under
31
 
# the same distribution terms that you use for the rest of that program.
32
 
 
33
 
 
34
 
# Please send patches to <config-patches@gnu.org>.  Submit a context
35
 
# diff and a properly formatted GNU ChangeLog entry.
 
23
# the same distribution terms that you use for the rest of that
 
24
# program.  This Exception is an additional permission under section 7
 
25
# of the GNU General Public License, version 3 ("GPLv3").
 
26
 
 
27
 
 
28
# Please send patches with a ChangeLog entry to config-patches@gnu.org.
36
29
#
37
30
# Configuration subroutine to validate and canonicalize a configuration type.
38
31
# Supply the specified configuration type as an argument.
75
68
version="\
76
69
GNU config.sub ($timestamp)
77
70
 
78
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
79
 
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
80
 
Software Foundation, Inc.
 
71
Copyright 1992-2013 Free Software Foundation, Inc.
81
72
 
82
73
This is free software; see the source for copying conditions.  There is NO
83
74
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
124
115
# Here we must recognize all the valid KERNEL-OS combinations.
125
116
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
126
117
case $maybe_os in
127
 
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
128
 
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
 
118
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
 
119
  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
 
120
  knetbsd*-gnu* | netbsd*-gnu* | \
129
121
  kopensolaris*-gnu* | \
130
122
  storm-chaos* | os2-emx* | rtmk-nova*)
131
123
    os=-$maybe_os
132
124
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
133
125
    ;;
 
126
  android-linux)
 
127
    os=-linux-android
 
128
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
 
129
    ;;
134
130
  *)
135
131
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
136
132
    if [ $basic_machine != $1 ]
153
149
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
154
150
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
155
151
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
156
 
        -apple | -axis | -knuth | -cray | -microblaze)
 
152
        -apple | -axis | -knuth | -cray | -microblaze*)
157
153
                os=
158
154
                basic_machine=$1
159
155
                ;;
160
 
        -bluegene*)
161
 
                os=-cnk
 
156
        -bluegene*)
 
157
                os=-cnk
162
158
                ;;
163
159
        -sim | -cisco | -oki | -wec | -winbond)
164
160
                os=
174
170
                os=-chorusos
175
171
                basic_machine=$1
176
172
                ;;
177
 
        -chorusrdb)
178
 
                os=-chorusrdb
 
173
        -chorusrdb)
 
174
                os=-chorusrdb
179
175
                basic_machine=$1
180
 
                ;;
 
176
                ;;
181
177
        -hiux*)
182
178
                os=-hiuxwe2
183
179
                ;;
222
218
        -isc*)
223
219
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
224
220
                ;;
 
221
        -lynx*178)
 
222
                os=-lynxos178
 
223
                ;;
 
224
        -lynx*5)
 
225
                os=-lynxos5
 
226
                ;;
225
227
        -lynx*)
226
228
                os=-lynxos
227
229
                ;;
246
248
        # Some are omitted here because they have special meanings below.
247
249
        1750a | 580 \
248
250
        | a29k \
 
251
        | aarch64 | aarch64_be \
249
252
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
250
253
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
251
254
        | am33_2.0 \
252
 
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
 
255
        | arc | arceb \
 
256
        | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
 
257
        | avr | avr32 \
 
258
        | be32 | be64 \
253
259
        | bfin \
254
 
        | c4x | clipper \
 
260
        | c4x | c8051 | clipper \
255
261
        | d10v | d30v | dlx | dsp16xx \
 
262
        | epiphany \
256
263
        | fido | fr30 | frv \
257
264
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 
265
        | hexagon \
258
266
        | i370 | i860 | i960 | ia64 \
259
267
        | ip2k | iq2000 \
 
268
        | le32 | le64 \
260
269
        | lm32 \
261
270
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
262
 
        | maxq | mb | microblaze | mcore | mep | metag \
 
271
        | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
263
272
        | mips | mipsbe | mipseb | mipsel | mipsle \
264
273
        | mips16 \
265
274
        | mips64 | mips64el \
277
286
        | mipsisa64r2 | mipsisa64r2el \
278
287
        | mipsisa64sb1 | mipsisa64sb1el \
279
288
        | mipsisa64sr71k | mipsisa64sr71kel \
 
289
        | mipsr5900 | mipsr5900el \
280
290
        | mipstx39 | mipstx39el \
281
291
        | mn10200 | mn10300 \
282
292
        | moxie \
283
293
        | mt \
284
294
        | msp430 \
285
 
        | nios | nios2 \
 
295
        | nds32 | nds32le | nds32be \
 
296
        | nios | nios2 | nios2eb | nios2el \
286
297
        | ns16k | ns32k \
287
 
        | or32 \
 
298
        | open8 \
 
299
        | or1k | or32 \
288
300
        | pdp10 | pdp11 | pj | pjl \
289
 
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
301
        | powerpc | powerpc64 | powerpc64le | powerpcle \
290
302
        | pyramid \
291
 
        | rx \
 
303
        | rl78 | rx \
292
304
        | score \
293
305
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
294
306
        | sh64 | sh64le \
295
307
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
296
308
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
297
 
        | spu | strongarm \
298
 
        | tahoe | thumb | tic4x | tic80 | tron \
 
309
        | spu \
 
310
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
299
311
        | ubicom32 \
300
 
        | v850 | v850e \
 
312
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
301
313
        | we32k \
302
 
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
 
314
        | x86 | xc16x | xstormy16 | xtensa \
303
315
        | z8k | z80)
304
316
                basic_machine=$basic_machine-unknown
305
317
                ;;
306
 
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
307
 
                # Motorola 68HC11/12.
 
318
        c54x)
 
319
                basic_machine=tic54x-unknown
 
320
                ;;
 
321
        c55x)
 
322
                basic_machine=tic55x-unknown
 
323
                ;;
 
324
        c6x)
 
325
                basic_machine=tic6x-unknown
 
326
                ;;
 
327
        m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
308
328
                basic_machine=$basic_machine-unknown
309
329
                os=-none
310
330
                ;;
314
334
                basic_machine=mt-unknown
315
335
                ;;
316
336
 
 
337
        strongarm | thumb | xscale)
 
338
                basic_machine=arm-unknown
 
339
                ;;
 
340
        xgate)
 
341
                basic_machine=$basic_machine-unknown
 
342
                os=-none
 
343
                ;;
 
344
        xscaleeb)
 
345
                basic_machine=armeb-unknown
 
346
                ;;
 
347
 
 
348
        xscaleel)
 
349
                basic_machine=armel-unknown
 
350
                ;;
 
351
 
317
352
        # We use `pc' rather than `unknown'
318
353
        # because (1) that's what they normally are, and
319
354
        # (2) the word "unknown" tends to confuse beginning users.
328
363
        # Recognize the basic CPU types with company name.
329
364
        580-* \
330
365
        | a29k-* \
 
366
        | aarch64-* | aarch64_be-* \
331
367
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
332
368
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
333
 
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
 
369
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
334
370
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
335
371
        | avr-* | avr32-* \
 
372
        | be32-* | be64-* \
336
373
        | bfin-* | bs2000-* \
337
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
338
 
        | clipper-* | craynv-* | cydra-* \
 
374
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
 
375
        | c8051-* | clipper-* | craynv-* | cydra-* \
339
376
        | d10v-* | d30v-* | dlx-* \
340
377
        | elxsi-* \
341
378
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
342
379
        | h8300-* | h8500-* \
343
380
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 
381
        | hexagon-* \
344
382
        | i*86-* | i860-* | i960-* | ia64-* \
345
383
        | ip2k-* | iq2000-* \
 
384
        | le32-* | le64-* \
346
385
        | lm32-* \
347
386
        | m32c-* | m32r-* | m32rle-* \
348
387
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
349
 
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
 
388
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
 
389
        | microblaze-* | microblazeel-* \
350
390
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
351
391
        | mips16-* \
352
392
        | mips64-* | mips64el-* \
364
404
        | mipsisa64r2-* | mipsisa64r2el-* \
365
405
        | mipsisa64sb1-* | mipsisa64sb1el-* \
366
406
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
 
407
        | mipsr5900-* | mipsr5900el-* \
367
408
        | mipstx39-* | mipstx39el-* \
368
409
        | mmix-* \
369
410
        | mt-* \
370
411
        | msp430-* \
371
 
        | nios-* | nios2-* \
 
412
        | nds32-* | nds32le-* | nds32be-* \
 
413
        | nios-* | nios2-* | nios2eb-* | nios2el-* \
372
414
        | none-* | np1-* | ns16k-* | ns32k-* \
 
415
        | open8-* \
373
416
        | orion-* \
374
417
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
375
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
418
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
376
419
        | pyramid-* \
377
 
        | romp-* | rs6000-* | rx-* \
 
420
        | rl78-* | romp-* | rs6000-* | rx-* \
378
421
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
379
422
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
380
423
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
381
424
        | sparclite-* \
382
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
383
 
        | tahoe-* | thumb-* \
 
425
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
 
426
        | tahoe-* \
384
427
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
385
 
        | tile-* | tilegx-* \
 
428
        | tile*-* \
386
429
        | tron-* \
387
430
        | ubicom32-* \
388
 
        | v850-* | v850e-* | vax-* \
 
431
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
 
432
        | vax-* \
389
433
        | we32k-* \
390
 
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 
434
        | x86-* | x86_64-* | xc16x-* | xps100-* \
391
435
        | xstormy16-* | xtensa*-* \
392
436
        | ymp-* \
393
437
        | z8k-* | z80-*)
412
456
                basic_machine=a29k-amd
413
457
                os=-udi
414
458
                ;;
415
 
        abacus)
 
459
        abacus)
416
460
                basic_machine=abacus-unknown
417
461
                ;;
418
462
        adobe68k)
482
526
                basic_machine=powerpc-ibm
483
527
                os=-cnk
484
528
                ;;
 
529
        c54x-*)
 
530
                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
531
                ;;
 
532
        c55x-*)
 
533
                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
534
                ;;
 
535
        c6x-*)
 
536
                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
537
                ;;
485
538
        c90)
486
539
                basic_machine=c90-cray
487
540
                os=-unicos
488
541
                ;;
489
 
        cegcc)
 
542
        cegcc)
490
543
                basic_machine=arm-unknown
491
544
                os=-cegcc
492
545
                ;;
518
571
                basic_machine=craynv-cray
519
572
                os=-unicosmp
520
573
                ;;
521
 
        cr16)
 
574
        cr16 | cr16-*)
522
575
                basic_machine=cr16-unknown
523
576
                os=-elf
524
577
                ;;
676
729
        i370-ibm* | ibm*)
677
730
                basic_machine=i370-ibm
678
731
                ;;
679
 
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
680
732
        i*86v32)
681
733
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
682
734
                os=-sysv32
734
786
                basic_machine=ns32k-utek
735
787
                os=-sysv
736
788
                ;;
737
 
        microblaze)
 
789
        microblaze*)
738
790
                basic_machine=microblaze-xilinx
739
791
                ;;
 
792
        mingw64)
 
793
                basic_machine=x86_64-pc
 
794
                os=-mingw64
 
795
                ;;
740
796
        mingw32)
741
 
                basic_machine=i386-pc
 
797
                basic_machine=i686-pc
742
798
                os=-mingw32
743
799
                ;;
744
800
        mingw32ce)
773
829
        ms1-*)
774
830
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
775
831
                ;;
 
832
        msys)
 
833
                basic_machine=i686-pc
 
834
                os=-msys
 
835
                ;;
776
836
        mvs)
777
837
                basic_machine=i370-ibm
778
838
                os=-mvs
779
839
                ;;
 
840
        nacl)
 
841
                basic_machine=le32-unknown
 
842
                os=-nacl
 
843
                ;;
780
844
        ncr3000)
781
845
                basic_machine=i486-ncr
782
846
                os=-sysv4
841
905
        np1)
842
906
                basic_machine=np1-gould
843
907
                ;;
 
908
        neo-tandem)
 
909
                basic_machine=neo-tandem
 
910
                ;;
 
911
        nse-tandem)
 
912
                basic_machine=nse-tandem
 
913
                ;;
844
914
        nsr-tandem)
845
915
                basic_machine=nsr-tandem
846
916
                ;;
923
993
                ;;
924
994
        power)  basic_machine=power-ibm
925
995
                ;;
926
 
        ppc)    basic_machine=powerpc-unknown
 
996
        ppc | ppcbe)    basic_machine=powerpc-unknown
927
997
                ;;
928
 
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
998
        ppc-* | ppcbe-*)
 
999
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
929
1000
                ;;
930
1001
        ppcle | powerpclittle | ppc-le | powerpc-little)
931
1002
                basic_machine=powerpcle-unknown
950
1021
                basic_machine=i586-unknown
951
1022
                os=-pw32
952
1023
                ;;
953
 
        rdos)
 
1024
        rdos | rdos64)
 
1025
                basic_machine=x86_64-pc
 
1026
                os=-rdos
 
1027
                ;;
 
1028
        rdos32)
954
1029
                basic_machine=i386-pc
955
1030
                os=-rdos
956
1031
                ;;
1019
1094
                basic_machine=i860-stratus
1020
1095
                os=-sysv4
1021
1096
                ;;
 
1097
        strongarm-* | thumb-*)
 
1098
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1099
                ;;
1022
1100
        sun2)
1023
1101
                basic_machine=m68000-sun
1024
1102
                ;;
1075
1153
                basic_machine=t90-cray
1076
1154
                os=-unicos
1077
1155
                ;;
1078
 
        tic54x | c54x*)
1079
 
                basic_machine=tic54x-unknown
1080
 
                os=-coff
1081
 
                ;;
1082
 
        tic55x | c55x*)
1083
 
                basic_machine=tic55x-unknown
1084
 
                os=-coff
1085
 
                ;;
1086
 
        tic6x | c6x*)
1087
 
                basic_machine=tic6x-unknown
1088
 
                os=-coff
1089
 
                ;;
1090
 
        # This must be matched before tile*.
1091
 
        tilegx*)
1092
 
                basic_machine=tilegx-unknown
1093
 
                os=-linux-gnu
1094
 
                ;;
1095
1156
        tile*)
1096
 
                basic_machine=tile-unknown
 
1157
                basic_machine=$basic_machine-unknown
1097
1158
                os=-linux-gnu
1098
1159
                ;;
1099
1160
        tx39)
1163
1224
        xps | xps100)
1164
1225
                basic_machine=xps100-honeywell
1165
1226
                ;;
 
1227
        xscale-* | xscalee[bl]-*)
 
1228
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
 
1229
                ;;
1166
1230
        ymp)
1167
1231
                basic_machine=ymp-cray
1168
1232
                os=-unicos
1260
1324
if [ x"$os" != x"" ]
1261
1325
then
1262
1326
case $os in
1263
 
        # First match some system type aliases
1264
 
        # that might get confused with valid system types.
 
1327
        # First match some system type aliases
 
1328
        # that might get confused with valid system types.
1265
1329
        # -solaris* is a basic system type, with this one exception.
1266
 
        -auroraux)
1267
 
                os=-auroraux
 
1330
        -auroraux)
 
1331
                os=-auroraux
1268
1332
                ;;
1269
1333
        -solaris1 | -solaris1.*)
1270
1334
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1288
1352
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1289
1353
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1290
1354
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1291
 
              | -sym* | -kopensolaris* \
 
1355
              | -sym* | -kopensolaris* | -plan9* \
1292
1356
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1293
1357
              | -aos* | -aros* \
1294
1358
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1295
1359
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1296
1360
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1297
 
              | -openbsd* | -solidbsd* \
 
1361
              | -bitrig* | -openbsd* | -solidbsd* \
1298
1362
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1299
1363
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1300
1364
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1301
1365
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1302
1366
              | -chorusos* | -chorusrdb* | -cegcc* \
1303
 
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1304
 
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1367
              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
 
1368
              | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
 
1369
              | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1305
1370
              | -uxpv* | -beos* | -mpeix* | -udk* \
1306
1371
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1307
1372
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1348
1413
        -opened*)
1349
1414
                os=-openedition
1350
1415
                ;;
1351
 
        -os400*)
 
1416
        -os400*)
1352
1417
                os=-os400
1353
1418
                ;;
1354
1419
        -wince*)
1397
1462
        -sinix*)
1398
1463
                os=-sysv4
1399
1464
                ;;
1400
 
        -tpf*)
 
1465
        -tpf*)
1401
1466
                os=-tpf
1402
1467
                ;;
1403
1468
        -triton*)
1433
1498
        -aros*)
1434
1499
                os=-aros
1435
1500
                ;;
1436
 
        -kaos*)
1437
 
                os=-kaos
1438
 
                ;;
1439
1501
        -zvmoe)
1440
1502
                os=-zvmoe
1441
1503
                ;;
1442
1504
        -dicos*)
1443
1505
                os=-dicos
1444
1506
                ;;
1445
 
        -nacl*)
1446
 
                ;;
 
1507
        -nacl*)
 
1508
                ;;
1447
1509
        -none)
1448
1510
                ;;
1449
1511
        *)
1466
1528
# system, and we'll never get to this point.
1467
1529
 
1468
1530
case $basic_machine in
1469
 
        score-*)
 
1531
        score-*)
1470
1532
                os=-elf
1471
1533
                ;;
1472
 
        spu-*)
 
1534
        spu-*)
1473
1535
                os=-elf
1474
1536
                ;;
1475
1537
        *-acorn)
1481
1543
        arm*-semi)
1482
1544
                os=-aout
1483
1545
                ;;
1484
 
        c4x-* | tic4x-*)
1485
 
                os=-coff
 
1546
        c4x-* | tic4x-*)
 
1547
                os=-coff
 
1548
                ;;
 
1549
        c8051-*)
 
1550
                os=-elf
 
1551
                ;;
 
1552
        hexagon-*)
 
1553
                os=-elf
 
1554
                ;;
 
1555
        tic54x-*)
 
1556
                os=-coff
 
1557
                ;;
 
1558
        tic55x-*)
 
1559
                os=-coff
 
1560
                ;;
 
1561
        tic6x-*)
 
1562
                os=-coff
1486
1563
                ;;
1487
1564
        # This must come before the *-dec entry.
1488
1565
        pdp10-*)
1502
1579
                ;;
1503
1580
        m68000-sun)
1504
1581
                os=-sunos3
1505
 
                # This also exists in the configure program, but was not the
1506
 
                # default.
1507
 
                # os=-sunos4
1508
1582
                ;;
1509
1583
        m68*-cisco)
1510
1584
                os=-aout
1511
1585
                ;;
1512
 
        mep-*)
 
1586
        mep-*)
1513
1587
                os=-elf
1514
1588
                ;;
1515
1589
        mips*-cisco)
1518
1592
        mips*-*)
1519
1593
                os=-elf
1520
1594
                ;;
 
1595
        or1k-*)
 
1596
                os=-elf
 
1597
                ;;
1521
1598
        or32-*)
1522
1599
                os=-coff
1523
1600
                ;;
1536
1613
        *-ibm)
1537
1614
                os=-aix
1538
1615
                ;;
1539
 
        *-knuth)
 
1616
        *-knuth)
1540
1617
                os=-mmixware
1541
1618
                ;;
1542
1619
        *-wec)