~rafalcieslak256/ubuntu/quantal/libpng/build_test

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2009-02-21 15:50:52 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090221155052-x0s21xidln6rlvzl
Tags: 1.2.35-1
* New upstream release
  - http://secunia.com/advisories/33970/
    Fix a vulnerability reported by Tavis Ormandy in which
    some arrays of pointers are not initialized prior to using
    "malloc" to define the pointers.
    Closes: #516256
  - http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5907
    The png_check_keyword function in pngwutil.c in libpng, might
    allow context-dependent attackers to set the value of an
    arbitrary memory location to zero via vectors involving
    creation of crafted PNG files with keywords, related to an
    implicit cast of the '\0' character constant to a NULL pointer.
* Don't build libpng3 when binary-indep target is not called.
  Closes: #486415

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 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
5
#   Free Software Foundation, Inc.
5
6
 
6
 
timestamp='2005-12-23'
 
7
timestamp='2008-01-16'
7
8
 
8
9
# This file is (in principle) common to ALL GNU software.
9
10
# The presence of a machine in this file suggests that SOME GNU software
71
72
version="\
72
73
GNU config.sub ($timestamp)
73
74
 
74
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
75
 
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.
76
77
 
77
78
This is free software; see the source for copying conditions.  There is NO
78
79
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
240
241
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
241
242
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
242
243
        | am33_2.0 \
243
 
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
244
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
244
245
        | bfin \
245
246
        | c4x | clipper \
246
 
        | d10v | d30v | dlx | dsp16xx | dvp \
247
 
        | fr30 | frv \
 
247
        | d10v | d30v | dlx | dsp16xx \
 
248
        | fido | fr30 | frv \
248
249
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
249
250
        | i370 | i860 | i960 | ia64 \
250
251
        | ip2k | iq2000 \
251
 
        | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \
 
252
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
 
253
        | maxq | mb | microblaze | mcore | mep \
252
254
        | mips | mipsbe | mipseb | mipsel | mipsle \
253
255
        | mips16 \
254
256
        | mips64 | mips64el \
268
270
        | mn10200 | mn10300 \
269
271
        | mt \
270
272
        | msp430 \
 
273
        | nios | nios2 \
271
274
        | ns16k | ns32k \
272
275
        | or32 \
273
276
        | pdp10 | pdp11 | pj | pjl \
274
277
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
275
278
        | pyramid \
276
 
        | sh | sh[1234] | sh[24]a | sh[24]a*eb | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
279
        | score \
 
280
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
277
281
        | sh64 | sh64le \
278
 
        | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
279
 
        | sparcv8 | sparcv9 | sparcv9b \
280
 
        | strongarm \
 
282
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
 
283
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
 
284
        | spu | strongarm \
281
285
        | tahoe | thumb | tic4x | tic80 | tron \
282
286
        | v850 | v850e \
283
287
        | we32k \
284
 
        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
 
288
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
285
289
        | z8k)
286
290
                basic_machine=$basic_machine-unknown
287
291
                ;;
288
 
        m32c)
289
 
                basic_machine=$basic_machine-unknown
290
 
                ;;
291
292
        m6811 | m68hc11 | m6812 | m68hc12)
292
293
                # Motorola 68HC11/12.
293
294
                basic_machine=$basic_machine-unknown
298
299
        ms1)
299
300
                basic_machine=mt-unknown
300
301
                ;;
301
 
        nios2 | nios2-* | nios2 | nios2-*)
302
 
                basic_machine=nios2-altera
303
 
                os=-none
304
 
                ;;
305
302
 
306
303
        # We use `pc' rather than `unknown'
307
304
        # because (1) that's what they normally are, and
321
318
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
322
319
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
323
320
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
324
 
        | avr-* \
 
321
        | avr-* | avr32-* \
325
322
        | bfin-* | bs2000-* \
326
323
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
327
324
        | clipper-* | craynv-* | cydra-* \
328
325
        | d10v-* | d30v-* | dlx-* \
329
326
        | elxsi-* \
330
 
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
 
327
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
331
328
        | h8300-* | h8500-* \
332
329
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
333
330
        | i*86-* | i860-* | i960-* | ia64-* \
334
331
        | ip2k-* | iq2000-* \
335
 
        | m32r-* | m32rle-* \
 
332
        | m32c-* | m32r-* | m32rle-* \
336
333
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
337
334
        | m88110-* | m88k-* | maxq-* | mcore-* \
338
335
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
354
351
        | mmix-* \
355
352
        | mt-* \
356
353
        | msp430-* \
 
354
        | nios-* | nios2-* \
357
355
        | none-* | np1-* | ns16k-* | ns32k-* \
358
356
        | orion-* \
359
357
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
360
358
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
361
359
        | pyramid-* \
362
360
        | romp-* | rs6000-* \
363
 
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
361
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
364
362
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
365
 
        | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
 
363
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
366
364
        | sparclite-* \
367
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
 
365
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
368
366
        | tahoe-* | thumb-* \
369
367
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
370
368
        | tron-* \
371
369
        | v850-* | v850e-* | vax-* \
372
370
        | we32k-* \
373
 
        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
374
 
        | xstormy16-* | xtensa-* \
 
371
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 
372
        | xstormy16-* | xtensa*-* \
375
373
        | ymp-* \
376
374
        | z8k-*)
377
375
                ;;
378
 
        m32c-*)
 
376
        # Recognize the basic CPU types without company name, with glob match.
 
377
        xtensa*)
 
378
                basic_machine=$basic_machine-unknown
379
379
                ;;
380
380
        # Recognize the various machine names and aliases which stand
381
381
        # for a CPU type and a company and sometimes even an OS.
447
447
                basic_machine=ns32k-sequent
448
448
                os=-dynix
449
449
                ;;
 
450
        blackfin)
 
451
                basic_machine=bfin-unknown
 
452
                os=-linux
 
453
                ;;
 
454
        blackfin-*)
 
455
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
 
456
                os=-linux
 
457
                ;;
450
458
        c90)
451
459
                basic_machine=c90-cray
452
460
                os=-unicos
479
487
                basic_machine=craynv-cray
480
488
                os=-unicosmp
481
489
                ;;
482
 
        cr16c)
483
 
                basic_machine=cr16c-unknown
 
490
        cr16)
 
491
                basic_machine=cr16-unknown
484
492
                os=-elf
485
493
                ;;
486
494
        crds | unos)
672
680
                basic_machine=m68k-isi
673
681
                os=-sysv
674
682
                ;;
 
683
        m68knommu)
 
684
                basic_machine=m68k-unknown
 
685
                os=-linux
 
686
                ;;
 
687
        m68knommu-*)
 
688
                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
 
689
                os=-linux
 
690
                ;;
675
691
        m88k-omron*)
676
692
                basic_machine=m88k-omron
677
693
                ;;
687
703
                basic_machine=i386-pc
688
704
                os=-mingw32
689
705
                ;;
 
706
        mingw32ce)
 
707
                basic_machine=arm-unknown
 
708
                os=-mingw32ce
 
709
                ;;
690
710
        miniframe)
691
711
                basic_machine=m68000-convergent
692
712
                ;;
694
714
                basic_machine=m68k-atari
695
715
                os=-mint
696
716
                ;;
697
 
        mipsEE* | ee | ps2)
698
 
                basic_machine=mips64r5900el-scei
699
 
                case $os in
700
 
                    -linux*)
701
 
                        ;;
702
 
                    *)
703
 
                        os=-elf
704
 
                        ;;
705
 
                esac
706
 
                ;;
707
 
        iop)
708
 
                basic_machine=mipsel-scei
709
 
                os=-irx
710
 
                ;;
711
 
        dvp)
712
 
                basic_machine=dvp-scei
713
 
                os=-elf
714
 
                ;;
715
717
        mips3*-*)
716
718
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
717
719
                ;;
831
833
                basic_machine=i860-intel
832
834
                os=-osf
833
835
                ;;
 
836
        parisc)
 
837
                basic_machine=hppa-unknown
 
838
                os=-linux
 
839
                ;;
 
840
        parisc-*)
 
841
                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
 
842
                os=-linux
 
843
                ;;
834
844
        pbd)
835
845
                basic_machine=sparc-tti
836
846
                ;;
932
942
        sb1el)
933
943
                basic_machine=mipsisa64sb1el-unknown
934
944
                ;;
 
945
        sde)
 
946
                basic_machine=mipsisa32-sde
 
947
                os=-elf
 
948
                ;;
935
949
        sei)
936
950
                basic_machine=mips-sei
937
951
                os=-seiux
943
957
                basic_machine=sh-hitachi
944
958
                os=-hms
945
959
                ;;
 
960
        sh5el)
 
961
                basic_machine=sh5le-unknown
 
962
                ;;
946
963
        sh64)
947
964
                basic_machine=sh64-unknown
948
965
                ;;
1032
1049
                basic_machine=tic6x-unknown
1033
1050
                os=-coff
1034
1051
                ;;
 
1052
        tile*)
 
1053
                basic_machine=tile-unknown
 
1054
                os=-linux-gnu
 
1055
                ;;
1035
1056
        tx39)
1036
1057
                basic_machine=mipstx39-unknown
1037
1058
                ;;
1148
1169
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1149
1170
                basic_machine=sh-unknown
1150
1171
                ;;
1151
 
        sparc | sparcv8 | sparcv9 | sparcv9b)
 
1172
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1152
1173
                basic_machine=sparc-sun
1153
1174
                ;;
1154
1175
        cydra)
1221
1242
              | -aos* \
1222
1243
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1223
1244
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1224
 
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
 
1245
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
 
1246
              | -openbsd* | -solidbsd* \
1225
1247
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1226
1248
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1227
1249
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1236
1258
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1237
1259
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1238
1260
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1239
 
              | -skyos* | -haiku* | -rdos* | -irx*)
 
1261
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1240
1262
        # Remember, each alternative MUST END IN *, to match a version number.
1241
1263
                ;;
1242
1264
        -qnx*)
1388
1410
# system, and we'll never get to this point.
1389
1411
 
1390
1412
case $basic_machine in
 
1413
        score-*)
 
1414
                os=-elf
 
1415
                ;;
 
1416
        spu-*)
 
1417
                os=-elf
 
1418
                ;;
1391
1419
        *-acorn)
1392
1420
                os=-riscix1.2
1393
1421
                ;;
1397
1425
        arm*-semi)
1398
1426
                os=-aout
1399
1427
                ;;
1400
 
    c4x-* | tic4x-*)
1401
 
        os=-coff
1402
 
        ;;
 
1428
        c4x-* | tic4x-*)
 
1429
                os=-coff
 
1430
                ;;
1403
1431
        # This must come before the *-dec entry.
1404
1432
        pdp10-*)
1405
1433
                os=-tops20
1425
1453
        m68*-cisco)
1426
1454
                os=-aout
1427
1455
                ;;
 
1456
        mep-*)
 
1457
                os=-elf
 
1458
                ;;
1428
1459
        mips*-cisco)
1429
1460
                os=-elf
1430
1461
                ;;