~ubuntu-branches/ubuntu/utopic/lebiniou/utopic

« back to all changes in this revision

Viewing changes to build-aux/config.sub

  • Committer: Package Import Robot
  • Author(s): Logan Rosen
  • Date: 2013-11-13 21:19:20 UTC
  • mfrom: (6.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20131113211920-af65h37psw9fz6oy
Tags: 3.19.1-1ubuntu1
* Merge from Debian unstable. Remaining changes:
  - debian/patches/fix_ftbfs_with_binutils_gold: Add -lz to fix FTBFS with
    binutils-gold.
* debian/patches/fix_ftbfs_with_binutils_gold: Remove -lavutil, as it is
  already linked.

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
 
#   2011, 2012 Free Software Foundation, Inc.
6
 
 
7
 
timestamp='2012-02-10'
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
18
# along with this program; if not, see <http://www.gnu.org/licenses/>.
26
20
# As a special exception to the GNU General Public License, if you
27
21
# distribute this file as part of a program that contains a
28
22
# configuration script generated by Autoconf, you may include it under
29
 
# the same distribution terms that you use for the rest of that program.
30
 
 
31
 
 
32
 
# Please send patches to <config-patches@gnu.org>.  Submit a context
33
 
# 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.
34
29
#
35
30
# Configuration subroutine to validate and canonicalize a configuration type.
36
31
# Supply the specified configuration type as an argument.
73
68
version="\
74
69
GNU config.sub ($timestamp)
75
70
 
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.
 
71
Copyright 1992-2013 Free Software Foundation, Inc.
79
72
 
80
73
This is free software; see the source for copying conditions.  There is NO
81
74
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
123
116
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
124
117
case $maybe_os in
125
118
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
126
 
  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
 
119
  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
127
120
  knetbsd*-gnu* | netbsd*-gnu* | \
128
121
  kopensolaris*-gnu* | \
129
122
  storm-chaos* | os2-emx* | rtmk-nova*)
156
149
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
157
150
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
158
151
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
159
 
        -apple | -axis | -knuth | -cray | -microblaze)
 
152
        -apple | -axis | -knuth | -cray | -microblaze*)
160
153
                os=
161
154
                basic_machine=$1
162
155
                ;;
225
218
        -isc*)
226
219
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
227
220
                ;;
 
221
        -lynx*178)
 
222
                os=-lynxos178
 
223
                ;;
 
224
        -lynx*5)
 
225
                os=-lynxos5
 
226
                ;;
228
227
        -lynx*)
229
228
                os=-lynxos
230
229
                ;;
253
252
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
254
253
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
255
254
        | am33_2.0 \
256
 
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
257
 
        | be32 | be64 \
 
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 \
258
259
        | bfin \
259
 
        | c4x | clipper \
 
260
        | c4x | c8051 | clipper \
260
261
        | d10v | d30v | dlx | dsp16xx \
261
262
        | epiphany \
262
263
        | fido | fr30 | frv \
267
268
        | le32 | le64 \
268
269
        | lm32 \
269
270
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
270
 
        | maxq | mb | microblaze | mcore | mep | metag \
 
271
        | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
271
272
        | mips | mipsbe | mipseb | mipsel | mipsle \
272
273
        | mips16 \
273
274
        | mips64 | mips64el \
285
286
        | mipsisa64r2 | mipsisa64r2el \
286
287
        | mipsisa64sb1 | mipsisa64sb1el \
287
288
        | mipsisa64sr71k | mipsisa64sr71kel \
 
289
        | mipsr5900 | mipsr5900el \
288
290
        | mipstx39 | mipstx39el \
289
291
        | mn10200 | mn10300 \
290
292
        | moxie \
291
293
        | mt \
292
294
        | msp430 \
293
295
        | nds32 | nds32le | nds32be \
294
 
        | nios | nios2 \
 
296
        | nios | nios2 | nios2eb | nios2el \
295
297
        | ns16k | ns32k \
296
298
        | open8 \
297
 
        | or32 \
 
299
        | or1k | or32 \
298
300
        | pdp10 | pdp11 | pj | pjl \
299
301
        | powerpc | powerpc64 | powerpc64le | powerpcle \
300
302
        | pyramid \
364
366
        | aarch64-* | aarch64_be-* \
365
367
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
366
368
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
367
 
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
 
369
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
368
370
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
369
371
        | avr-* | avr32-* \
370
372
        | be32-* | be64-* \
371
373
        | bfin-* | bs2000-* \
372
374
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
373
 
        | clipper-* | craynv-* | cydra-* \
 
375
        | c8051-* | clipper-* | craynv-* | cydra-* \
374
376
        | d10v-* | d30v-* | dlx-* \
375
377
        | elxsi-* \
376
378
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
383
385
        | lm32-* \
384
386
        | m32c-* | m32r-* | m32rle-* \
385
387
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
386
 
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
 
388
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
 
389
        | microblaze-* | microblazeel-* \
387
390
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
388
391
        | mips16-* \
389
392
        | mips64-* | mips64el-* \
401
404
        | mipsisa64r2-* | mipsisa64r2el-* \
402
405
        | mipsisa64sb1-* | mipsisa64sb1el-* \
403
406
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
 
407
        | mipsr5900-* | mipsr5900el-* \
404
408
        | mipstx39-* | mipstx39el-* \
405
409
        | mmix-* \
406
410
        | mt-* \
407
411
        | msp430-* \
408
412
        | nds32-* | nds32le-* | nds32be-* \
409
 
        | nios-* | nios2-* \
 
413
        | nios-* | nios2-* | nios2eb-* | nios2el-* \
410
414
        | none-* | np1-* | ns16k-* | ns32k-* \
411
415
        | open8-* \
412
416
        | orion-* \
782
786
                basic_machine=ns32k-utek
783
787
                os=-sysv
784
788
                ;;
785
 
        microblaze)
 
789
        microblaze*)
786
790
                basic_machine=microblaze-xilinx
787
791
                ;;
 
792
        mingw64)
 
793
                basic_machine=x86_64-pc
 
794
                os=-mingw64
 
795
                ;;
788
796
        mingw32)
789
 
                basic_machine=i386-pc
 
797
                basic_machine=i686-pc
790
798
                os=-mingw32
791
799
                ;;
792
800
        mingw32ce)
822
830
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
823
831
                ;;
824
832
        msys)
825
 
                basic_machine=i386-pc
 
833
                basic_machine=i686-pc
826
834
                os=-msys
827
835
                ;;
828
836
        mvs)
1013
1021
                basic_machine=i586-unknown
1014
1022
                os=-pw32
1015
1023
                ;;
1016
 
        rdos)
 
1024
        rdos | rdos64)
 
1025
                basic_machine=x86_64-pc
 
1026
                os=-rdos
 
1027
                ;;
 
1028
        rdos32)
1017
1029
                basic_machine=i386-pc
1018
1030
                os=-rdos
1019
1031
                ;;
1340
1352
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1341
1353
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1342
1354
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1343
 
              | -sym* | -kopensolaris* \
 
1355
              | -sym* | -kopensolaris* | -plan9* \
1344
1356
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1345
1357
              | -aos* | -aros* \
1346
1358
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1347
1359
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1348
1360
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1349
 
              | -openbsd* | -solidbsd* \
 
1361
              | -bitrig* | -openbsd* | -solidbsd* \
1350
1362
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1351
1363
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1352
1364
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1353
1365
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1354
1366
              | -chorusos* | -chorusrdb* | -cegcc* \
1355
1367
              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1356
 
              | -mingw32* | -linux-gnu* | -linux-android* \
1357
 
              | -linux-newlib* | -linux-uclibc* \
 
1368
              | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
 
1369
              | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1358
1370
              | -uxpv* | -beos* | -mpeix* | -udk* \
1359
1371
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1360
1372
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1486
1498
        -aros*)
1487
1499
                os=-aros
1488
1500
                ;;
1489
 
        -kaos*)
1490
 
                os=-kaos
1491
 
                ;;
1492
1501
        -zvmoe)
1493
1502
                os=-zvmoe
1494
1503
                ;;
1537
1546
        c4x-* | tic4x-*)
1538
1547
                os=-coff
1539
1548
                ;;
 
1549
        c8051-*)
 
1550
                os=-elf
 
1551
                ;;
 
1552
        hexagon-*)
 
1553
                os=-elf
 
1554
                ;;
1540
1555
        tic54x-*)
1541
1556
                os=-coff
1542
1557
                ;;
1577
1592
        mips*-*)
1578
1593
                os=-elf
1579
1594
                ;;
 
1595
        or1k-*)
 
1596
                os=-elf
 
1597
                ;;
1580
1598
        or32-*)
1581
1599
                os=-coff
1582
1600
                ;;