~ubuntu-branches/debian/sid/x11-apps/sid

« back to all changes in this revision

Viewing changes to xmag/config.sub

  • Committer: Package Import Robot
  • Author(s): Julien Cristau
  • Date: 2015-04-30 23:57:18 UTC
  • Revision ID: package-import@ubuntu.com-20150430235718-gm4akh8letheag2v
Tags: 7.7+5
* bitmap 1.0.8.
* x11perf 1.6.0.
* xcalc 1.0.6.
* xditview 1.0.4.
* xedit 1.2.2.
* xgc 1.0.5.
* xmag 1.0.6.
* xman 1.1.4.
* Remove cpp from Depends (closes: #778804).
* Bump debhelper compat level to 9.

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 Free Software Foundation, Inc.
6
 
 
7
 
timestamp='2011-11-11'
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-2014 Free Software Foundation, Inc.
 
4
 
 
5
timestamp='2014-12-03'
 
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 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, 2011 Free
80
 
Software Foundation, Inc.
 
71
Copyright 1992-2014 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."
125
116
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
126
117
case $maybe_os in
127
118
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
128
 
  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
 
119
  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
129
120
  knetbsd*-gnu* | netbsd*-gnu* | \
130
121
  kopensolaris*-gnu* | \
131
122
  storm-chaos* | os2-emx* | rtmk-nova*)
132
123
    os=-$maybe_os
133
124
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
134
125
    ;;
 
126
  android-linux)
 
127
    os=-linux-android
 
128
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
 
129
    ;;
135
130
  *)
136
131
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
137
132
    if [ $basic_machine != $1 ]
154
149
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
155
150
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
156
151
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
157
 
        -apple | -axis | -knuth | -cray | -microblaze)
 
152
        -apple | -axis | -knuth | -cray | -microblaze*)
158
153
                os=
159
154
                basic_machine=$1
160
155
                ;;
223
218
        -isc*)
224
219
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
225
220
                ;;
 
221
        -lynx*178)
 
222
                os=-lynxos178
 
223
                ;;
 
224
        -lynx*5)
 
225
                os=-lynxos5
 
226
                ;;
226
227
        -lynx*)
227
228
                os=-lynxos
228
229
                ;;
247
248
        # Some are omitted here because they have special meanings below.
248
249
        1750a | 580 \
249
250
        | a29k \
 
251
        | aarch64 | aarch64_be \
250
252
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
251
253
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
252
254
        | am33_2.0 \
253
 
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
254
 
        | 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 \
255
259
        | bfin \
256
 
        | c4x | clipper \
 
260
        | c4x | c8051 | clipper \
257
261
        | d10v | d30v | dlx | dsp16xx \
258
262
        | epiphany \
259
263
        | fido | fr30 | frv \
261
265
        | hexagon \
262
266
        | i370 | i860 | i960 | ia64 \
263
267
        | ip2k | iq2000 \
 
268
        | k1om \
264
269
        | le32 | le64 \
265
270
        | lm32 \
266
271
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
267
 
        | maxq | mb | microblaze | mcore | mep | metag \
 
272
        | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
268
273
        | mips | mipsbe | mipseb | mipsel | mipsle \
269
274
        | mips16 \
270
275
        | mips64 | mips64el \
278
283
        | mips64vr5900 | mips64vr5900el \
279
284
        | mipsisa32 | mipsisa32el \
280
285
        | mipsisa32r2 | mipsisa32r2el \
 
286
        | mipsisa32r6 | mipsisa32r6el \
281
287
        | mipsisa64 | mipsisa64el \
282
288
        | mipsisa64r2 | mipsisa64r2el \
 
289
        | mipsisa64r6 | mipsisa64r6el \
283
290
        | mipsisa64sb1 | mipsisa64sb1el \
284
291
        | mipsisa64sr71k | mipsisa64sr71kel \
 
292
        | mipsr5900 | mipsr5900el \
285
293
        | mipstx39 | mipstx39el \
286
294
        | mn10200 | mn10300 \
287
295
        | moxie \
288
296
        | mt \
289
297
        | msp430 \
290
298
        | nds32 | nds32le | nds32be \
291
 
        | nios | nios2 \
 
299
        | nios | nios2 | nios2eb | nios2el \
292
300
        | ns16k | ns32k \
293
 
        | open8 \
294
 
        | or32 \
 
301
        | open8 | or1k | or1knd | or32 \
295
302
        | pdp10 | pdp11 | pj | pjl \
296
303
        | powerpc | powerpc64 | powerpc64le | powerpcle \
297
304
        | pyramid \
 
305
        | riscv32 | riscv64 \
298
306
        | rl78 | rx \
299
307
        | score \
300
308
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
305
313
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
306
314
        | ubicom32 \
307
315
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
 
316
        | visium \
308
317
        | we32k \
309
318
        | x86 | xc16x | xstormy16 | xtensa \
310
319
        | z8k | z80)
319
328
        c6x)
320
329
                basic_machine=tic6x-unknown
321
330
                ;;
322
 
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
323
 
                # Motorola 68HC11/12.
 
331
        leon|leon[3-9])
 
332
                basic_machine=sparc-$basic_machine
 
333
                ;;
 
334
        m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
324
335
                basic_machine=$basic_machine-unknown
325
336
                os=-none
326
337
                ;;
333
344
        strongarm | thumb | xscale)
334
345
                basic_machine=arm-unknown
335
346
                ;;
336
 
 
 
347
        xgate)
 
348
                basic_machine=$basic_machine-unknown
 
349
                os=-none
 
350
                ;;
337
351
        xscaleeb)
338
352
                basic_machine=armeb-unknown
339
353
                ;;
356
370
        # Recognize the basic CPU types with company name.
357
371
        580-* \
358
372
        | a29k-* \
 
373
        | aarch64-* | aarch64_be-* \
359
374
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
360
375
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
361
 
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
 
376
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
362
377
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
363
378
        | avr-* | avr32-* \
364
379
        | be32-* | be64-* \
365
380
        | bfin-* | bs2000-* \
366
381
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
367
 
        | clipper-* | craynv-* | cydra-* \
 
382
        | c8051-* | clipper-* | craynv-* | cydra-* \
368
383
        | d10v-* | d30v-* | dlx-* \
369
384
        | elxsi-* \
370
385
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
373
388
        | hexagon-* \
374
389
        | i*86-* | i860-* | i960-* | ia64-* \
375
390
        | ip2k-* | iq2000-* \
 
391
        | k1om-* \
376
392
        | le32-* | le64-* \
377
393
        | lm32-* \
378
394
        | m32c-* | m32r-* | m32rle-* \
379
395
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
380
 
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
 
396
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
 
397
        | microblaze-* | microblazeel-* \
381
398
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
382
399
        | mips16-* \
383
400
        | mips64-* | mips64el-* \
391
408
        | mips64vr5900-* | mips64vr5900el-* \
392
409
        | mipsisa32-* | mipsisa32el-* \
393
410
        | mipsisa32r2-* | mipsisa32r2el-* \
 
411
        | mipsisa32r6-* | mipsisa32r6el-* \
394
412
        | mipsisa64-* | mipsisa64el-* \
395
413
        | mipsisa64r2-* | mipsisa64r2el-* \
 
414
        | mipsisa64r6-* | mipsisa64r6el-* \
396
415
        | mipsisa64sb1-* | mipsisa64sb1el-* \
397
416
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
 
417
        | mipsr5900-* | mipsr5900el-* \
398
418
        | mipstx39-* | mipstx39el-* \
399
419
        | mmix-* \
400
420
        | mt-* \
401
421
        | msp430-* \
402
422
        | nds32-* | nds32le-* | nds32be-* \
403
 
        | nios-* | nios2-* \
 
423
        | nios-* | nios2-* | nios2eb-* | nios2el-* \
404
424
        | none-* | np1-* | ns16k-* | ns32k-* \
405
425
        | open8-* \
 
426
        | or1k*-* \
406
427
        | orion-* \
407
428
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
408
429
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
420
441
        | ubicom32-* \
421
442
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
422
443
        | vax-* \
 
444
        | visium-* \
423
445
        | we32k-* \
424
446
        | x86-* | x86_64-* | xc16x-* | xps100-* \
425
447
        | xstormy16-* | xtensa*-* \
719
741
        i370-ibm* | ibm*)
720
742
                basic_machine=i370-ibm
721
743
                ;;
722
 
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
723
744
        i*86v32)
724
745
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
725
746
                os=-sysv32
758
779
                basic_machine=m68k-isi
759
780
                os=-sysv
760
781
                ;;
 
782
        leon-*|leon[3-9]-*)
 
783
                basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
 
784
                ;;
761
785
        m68knommu)
762
786
                basic_machine=m68k-unknown
763
787
                os=-linux
777
801
                basic_machine=ns32k-utek
778
802
                os=-sysv
779
803
                ;;
780
 
        microblaze)
 
804
        microblaze*)
781
805
                basic_machine=microblaze-xilinx
782
806
                ;;
 
807
        mingw64)
 
808
                basic_machine=x86_64-pc
 
809
                os=-mingw64
 
810
                ;;
783
811
        mingw32)
784
 
                basic_machine=i386-pc
 
812
                basic_machine=i686-pc
785
813
                os=-mingw32
786
814
                ;;
787
815
        mingw32ce)
809
837
                basic_machine=powerpc-unknown
810
838
                os=-morphos
811
839
                ;;
 
840
        moxiebox)
 
841
                basic_machine=moxie-unknown
 
842
                os=-moxiebox
 
843
                ;;
812
844
        msdos)
813
845
                basic_machine=i386-pc
814
846
                os=-msdos
817
849
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
818
850
                ;;
819
851
        msys)
820
 
                basic_machine=i386-pc
 
852
                basic_machine=i686-pc
821
853
                os=-msys
822
854
                ;;
823
855
        mvs)
1008
1040
                basic_machine=i586-unknown
1009
1041
                os=-pw32
1010
1042
                ;;
1011
 
        rdos)
 
1043
        rdos | rdos64)
 
1044
                basic_machine=x86_64-pc
 
1045
                os=-rdos
 
1046
                ;;
 
1047
        rdos32)
1012
1048
                basic_machine=i386-pc
1013
1049
                os=-rdos
1014
1050
                ;;
1335
1371
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1336
1372
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1337
1373
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1338
 
              | -sym* | -kopensolaris* \
 
1374
              | -sym* | -kopensolaris* | -plan9* \
1339
1375
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1340
1376
              | -aos* | -aros* \
1341
1377
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1342
1378
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1343
1379
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1344
 
              | -openbsd* | -solidbsd* \
 
1380
              | -bitrig* | -openbsd* | -solidbsd* \
1345
1381
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1346
1382
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1347
1383
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1348
1384
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1349
1385
              | -chorusos* | -chorusrdb* | -cegcc* \
1350
1386
              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1351
 
              | -mingw32* | -linux-gnu* | -linux-android* \
1352
 
              | -linux-newlib* | -linux-uclibc* \
1353
 
              | -uxpv* | -beos* | -mpeix* | -udk* \
 
1387
              | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
 
1388
              | -linux-newlib* | -linux-musl* | -linux-uclibc* \
 
1389
              | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1354
1390
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1355
1391
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1356
1392
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1357
1393
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1358
1394
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1359
1395
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1360
 
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
 
1396
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
1361
1397
        # Remember, each alternative MUST END IN *, to match a version number.
1362
1398
                ;;
1363
1399
        -qnx*)
1481
1517
        -aros*)
1482
1518
                os=-aros
1483
1519
                ;;
1484
 
        -kaos*)
1485
 
                os=-kaos
1486
 
                ;;
1487
1520
        -zvmoe)
1488
1521
                os=-zvmoe
1489
1522
                ;;
1532
1565
        c4x-* | tic4x-*)
1533
1566
                os=-coff
1534
1567
                ;;
 
1568
        c8051-*)
 
1569
                os=-elf
 
1570
                ;;
 
1571
        hexagon-*)
 
1572
                os=-elf
 
1573
                ;;
1535
1574
        tic54x-*)
1536
1575
                os=-coff
1537
1576
                ;;
1559
1598
                ;;
1560
1599
        m68000-sun)
1561
1600
                os=-sunos3
1562
 
                # This also exists in the configure program, but was not the
1563
 
                # default.
1564
 
                # os=-sunos4
1565
1601
                ;;
1566
1602
        m68*-cisco)
1567
1603
                os=-aout