~ubuntu-branches/ubuntu/saucy/clamav/saucy-backports

« back to all changes in this revision

Viewing changes to libclamav/c++/config/config.sub

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-07-15 01:08:10 UTC
  • mfrom: (0.35.47 sid)
  • Revision ID: package-import@ubuntu.com-20140715010810-ru66ek4fun2iseba
Tags: 0.98.4+dfsg-2~ubuntu13.10.1
No-change backport to saucy (LP: #1341962)

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
 
#   Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
 
5
#   2011, 2012 Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2010-01-22'
 
7
timestamp='2012-04-18'
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, write to the Free Software
25
 
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
26
 
# 02110-1301, USA.
 
24
# along with this program; if not, see <http://www.gnu.org/licenses/>.
27
25
#
28
26
# As a special exception to the GNU General Public License, if you
29
27
# distribute this file as part of a program that contains a
76
74
GNU config.sub ($timestamp)
77
75
 
78
76
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.
 
77
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
 
78
Free Software Foundation, Inc.
81
79
 
82
80
This is free software; see the source for copying conditions.  There is NO
83
81
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
124
122
# Here we must recognize all the valid KERNEL-OS combinations.
125
123
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
126
124
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* | \
 
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* | \
129
128
  kopensolaris*-gnu* | \
130
129
  storm-chaos* | os2-emx* | rtmk-nova*)
131
130
    os=-$maybe_os
132
131
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
133
132
    ;;
 
133
  android-linux)
 
134
    os=-linux-android
 
135
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
 
136
    ;;
134
137
  *)
135
138
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
136
139
    if [ $basic_machine != $1 ]
157
160
                os=
158
161
                basic_machine=$1
159
162
                ;;
160
 
        -bluegene*)
161
 
                os=-cnk
 
163
        -bluegene*)
 
164
                os=-cnk
162
165
                ;;
163
166
        -sim | -cisco | -oki | -wec | -winbond)
164
167
                os=
174
177
                os=-chorusos
175
178
                basic_machine=$1
176
179
                ;;
177
 
        -chorusrdb)
178
 
                os=-chorusrdb
 
180
        -chorusrdb)
 
181
                os=-chorusrdb
179
182
                basic_machine=$1
180
 
                ;;
 
183
                ;;
181
184
        -hiux*)
182
185
                os=-hiuxwe2
183
186
                ;;
222
225
        -isc*)
223
226
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
224
227
                ;;
 
228
        -lynx*178)
 
229
                os=-lynxos178
 
230
                ;;
 
231
        -lynx*5)
 
232
                os=-lynxos5
 
233
                ;;
225
234
        -lynx*)
226
235
                os=-lynxos
227
236
                ;;
246
255
        # Some are omitted here because they have special meanings below.
247
256
        1750a | 580 \
248
257
        | a29k \
 
258
        | aarch64 | aarch64_be \
249
259
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
250
260
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
251
261
        | am33_2.0 \
252
262
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
 
263
        | be32 | be64 \
253
264
        | bfin \
254
265
        | c4x | clipper \
255
266
        | d10v | d30v | dlx | dsp16xx \
 
267
        | epiphany \
256
268
        | fido | fr30 | frv \
257
269
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 
270
        | hexagon \
258
271
        | i370 | i860 | i960 | ia64 \
259
272
        | ip2k | iq2000 \
 
273
        | le32 | le64 \
260
274
        | lm32 \
261
275
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
262
276
        | maxq | mb | microblaze | mcore | mep | metag \
282
296
        | moxie \
283
297
        | mt \
284
298
        | msp430 \
 
299
        | nds32 | nds32le | nds32be \
285
300
        | nios | nios2 \
286
301
        | ns16k | ns32k \
 
302
        | open8 \
287
303
        | or32 \
288
304
        | pdp10 | pdp11 | pj | pjl \
289
 
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
305
        | powerpc | powerpc64 | powerpc64le | powerpcle \
290
306
        | pyramid \
291
 
        | rx \
 
307
        | rl78 | rx \
292
308
        | score \
293
309
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
294
310
        | sh64 | sh64le \
295
311
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
296
312
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
297
 
        | spu | strongarm \
298
 
        | tahoe | thumb | tic4x | tic80 | tron \
 
313
        | spu \
 
314
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
299
315
        | ubicom32 \
300
 
        | v850 | v850e \
 
316
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
301
317
        | we32k \
302
 
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
 
318
        | x86 | xc16x | xstormy16 | xtensa \
303
319
        | z8k | z80)
304
320
                basic_machine=$basic_machine-unknown
305
321
                ;;
306
 
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
307
 
                # Motorola 68HC11/12.
 
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)
308
332
                basic_machine=$basic_machine-unknown
309
333
                os=-none
310
334
                ;;
314
338
                basic_machine=mt-unknown
315
339
                ;;
316
340
 
 
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
 
317
356
        # We use `pc' rather than `unknown'
318
357
        # because (1) that's what they normally are, and
319
358
        # (2) the word "unknown" tends to confuse beginning users.
328
367
        # Recognize the basic CPU types with company name.
329
368
        580-* \
330
369
        | a29k-* \
 
370
        | aarch64-* | aarch64_be-* \
331
371
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
332
372
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
333
373
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
334
374
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
335
375
        | avr-* | avr32-* \
 
376
        | be32-* | be64-* \
336
377
        | bfin-* | bs2000-* \
337
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
378
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
338
379
        | clipper-* | craynv-* | cydra-* \
339
380
        | d10v-* | d30v-* | dlx-* \
340
381
        | elxsi-* \
341
382
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
342
383
        | h8300-* | h8500-* \
343
384
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 
385
        | hexagon-* \
344
386
        | i*86-* | i860-* | i960-* | ia64-* \
345
387
        | ip2k-* | iq2000-* \
 
388
        | le32-* | le64-* \
346
389
        | lm32-* \
347
390
        | m32c-* | m32r-* | m32rle-* \
348
391
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
368
411
        | mmix-* \
369
412
        | mt-* \
370
413
        | msp430-* \
 
414
        | nds32-* | nds32le-* | nds32be-* \
371
415
        | nios-* | nios2-* \
372
416
        | none-* | np1-* | ns16k-* | ns32k-* \
 
417
        | open8-* \
373
418
        | orion-* \
374
419
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
375
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
420
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
376
421
        | pyramid-* \
377
 
        | romp-* | rs6000-* | rx-* \
 
422
        | rl78-* | romp-* | rs6000-* | rx-* \
378
423
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
379
424
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
380
425
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
381
426
        | sparclite-* \
382
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
383
 
        | tahoe-* | thumb-* \
 
427
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
 
428
        | tahoe-* \
384
429
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
385
 
        | tile-* | tilegx-* \
 
430
        | tile*-* \
386
431
        | tron-* \
387
432
        | ubicom32-* \
388
 
        | v850-* | v850e-* | vax-* \
 
433
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
 
434
        | vax-* \
389
435
        | we32k-* \
390
 
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 
436
        | x86-* | x86_64-* | xc16x-* | xps100-* \
391
437
        | xstormy16-* | xtensa*-* \
392
438
        | ymp-* \
393
439
        | z8k-* | z80-*)
412
458
                basic_machine=a29k-amd
413
459
                os=-udi
414
460
                ;;
415
 
        abacus)
 
461
        abacus)
416
462
                basic_machine=abacus-unknown
417
463
                ;;
418
464
        adobe68k)
482
528
                basic_machine=powerpc-ibm
483
529
                os=-cnk
484
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
                ;;
485
540
        c90)
486
541
                basic_machine=c90-cray
487
542
                os=-unicos
488
543
                ;;
489
 
        cegcc)
 
544
        cegcc)
490
545
                basic_machine=arm-unknown
491
546
                os=-cegcc
492
547
                ;;
518
573
                basic_machine=craynv-cray
519
574
                os=-unicosmp
520
575
                ;;
521
 
        cr16)
 
576
        cr16 | cr16-*)
522
577
                basic_machine=cr16-unknown
523
578
                os=-elf
524
579
                ;;
676
731
        i370-ibm* | ibm*)
677
732
                basic_machine=i370-ibm
678
733
                ;;
679
 
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
680
734
        i*86v32)
681
735
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
682
736
                os=-sysv32
734
788
                basic_machine=ns32k-utek
735
789
                os=-sysv
736
790
                ;;
737
 
        microblaze)
 
791
        microblaze)
738
792
                basic_machine=microblaze-xilinx
739
793
                ;;
740
794
        mingw32)
773
827
        ms1-*)
774
828
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
775
829
                ;;
 
830
        msys)
 
831
                basic_machine=i386-pc
 
832
                os=-msys
 
833
                ;;
776
834
        mvs)
777
835
                basic_machine=i370-ibm
778
836
                os=-mvs
779
837
                ;;
 
838
        nacl)
 
839
                basic_machine=le32-unknown
 
840
                os=-nacl
 
841
                ;;
780
842
        ncr3000)
781
843
                basic_machine=i486-ncr
782
844
                os=-sysv4
841
903
        np1)
842
904
                basic_machine=np1-gould
843
905
                ;;
 
906
        neo-tandem)
 
907
                basic_machine=neo-tandem
 
908
                ;;
 
909
        nse-tandem)
 
910
                basic_machine=nse-tandem
 
911
                ;;
844
912
        nsr-tandem)
845
913
                basic_machine=nsr-tandem
846
914
                ;;
923
991
                ;;
924
992
        power)  basic_machine=power-ibm
925
993
                ;;
926
 
        ppc)    basic_machine=powerpc-unknown
 
994
        ppc | ppcbe)    basic_machine=powerpc-unknown
927
995
                ;;
928
 
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
996
        ppc-* | ppcbe-*)
 
997
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
929
998
                ;;
930
999
        ppcle | powerpclittle | ppc-le | powerpc-little)
931
1000
                basic_machine=powerpcle-unknown
1019
1088
                basic_machine=i860-stratus
1020
1089
                os=-sysv4
1021
1090
                ;;
 
1091
        strongarm-* | thumb-*)
 
1092
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1093
                ;;
1022
1094
        sun2)
1023
1095
                basic_machine=m68000-sun
1024
1096
                ;;
1075
1147
                basic_machine=t90-cray
1076
1148
                os=-unicos
1077
1149
                ;;
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
1150
        tile*)
1096
 
                basic_machine=tile-unknown
 
1151
                basic_machine=$basic_machine-unknown
1097
1152
                os=-linux-gnu
1098
1153
                ;;
1099
1154
        tx39)
1163
1218
        xps | xps100)
1164
1219
                basic_machine=xps100-honeywell
1165
1220
                ;;
 
1221
        xscale-* | xscalee[bl]-*)
 
1222
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
 
1223
                ;;
1166
1224
        ymp)
1167
1225
                basic_machine=ymp-cray
1168
1226
                os=-unicos
1260
1318
if [ x"$os" != x"" ]
1261
1319
then
1262
1320
case $os in
1263
 
        # First match some system type aliases
1264
 
        # that might get confused with valid system types.
 
1321
        # First match some system type aliases
 
1322
        # that might get confused with valid system types.
1265
1323
        # -solaris* is a basic system type, with this one exception.
1266
 
        -auroraux)
1267
 
                os=-auroraux
 
1324
        -auroraux)
 
1325
                os=-auroraux
1268
1326
                ;;
1269
1327
        -solaris1 | -solaris1.*)
1270
1328
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1300
1358
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1301
1359
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1302
1360
              | -chorusos* | -chorusrdb* | -cegcc* \
1303
 
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1304
 
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1361
              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
 
1362
              | -mingw32* | -linux-gnu* | -linux-android* \
 
1363
              | -linux-newlib* | -linux-uclibc* \
1305
1364
              | -uxpv* | -beos* | -mpeix* | -udk* \
1306
1365
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1307
1366
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1348
1407
        -opened*)
1349
1408
                os=-openedition
1350
1409
                ;;
1351
 
        -os400*)
 
1410
        -os400*)
1352
1411
                os=-os400
1353
1412
                ;;
1354
1413
        -wince*)
1397
1456
        -sinix*)
1398
1457
                os=-sysv4
1399
1458
                ;;
1400
 
        -tpf*)
 
1459
        -tpf*)
1401
1460
                os=-tpf
1402
1461
                ;;
1403
1462
        -triton*)
1442
1501
        -dicos*)
1443
1502
                os=-dicos
1444
1503
                ;;
1445
 
        -nacl*)
1446
 
                ;;
 
1504
        -nacl*)
 
1505
                ;;
1447
1506
        -none)
1448
1507
                ;;
1449
1508
        *)
1466
1525
# system, and we'll never get to this point.
1467
1526
 
1468
1527
case $basic_machine in
1469
 
        score-*)
 
1528
        score-*)
1470
1529
                os=-elf
1471
1530
                ;;
1472
 
        spu-*)
 
1531
        spu-*)
1473
1532
                os=-elf
1474
1533
                ;;
1475
1534
        *-acorn)
1481
1540
        arm*-semi)
1482
1541
                os=-aout
1483
1542
                ;;
1484
 
        c4x-* | tic4x-*)
1485
 
                os=-coff
 
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
1486
1557
                ;;
1487
1558
        # This must come before the *-dec entry.
1488
1559
        pdp10-*)
1502
1573
                ;;
1503
1574
        m68000-sun)
1504
1575
                os=-sunos3
1505
 
                # This also exists in the configure program, but was not the
1506
 
                # default.
1507
 
                # os=-sunos4
1508
1576
                ;;
1509
1577
        m68*-cisco)
1510
1578
                os=-aout
1511
1579
                ;;
1512
 
        mep-*)
 
1580
        mep-*)
1513
1581
                os=-elf
1514
1582
                ;;
1515
1583
        mips*-cisco)
1536
1604
        *-ibm)
1537
1605
                os=-aix
1538
1606
                ;;
1539
 
        *-knuth)
 
1607
        *-knuth)
1540
1608
                os=-mmixware
1541
1609
                ;;
1542
1610
        *-wec)