~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/erl_interface/src/auxdir/config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

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 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002 Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2004-03-12'
 
6
timestamp='2002-09-05'
7
7
 
8
8
# This file is (in principle) common to ALL GNU software.
9
9
# The presence of a machine in this file suggests that SOME GNU software
118
118
# Here we must recognize all the valid KERNEL-OS combinations.
119
119
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120
120
case $maybe_os in
121
 
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
122
 
  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
 
121
  nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
123
122
    os=-$maybe_os
124
123
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
125
124
    ;;
229
228
        | a29k \
230
229
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
231
230
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
232
 
        | am33_2.0 \
233
231
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
234
 
        | c4x | clipper \
 
232
        | clipper \
235
233
        | d10v | d30v | dlx | dsp16xx \
236
234
        | fr30 | frv \
237
235
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
238
236
        | i370 | i860 | i960 | ia64 \
239
 
        | ip2k | iq2000 \
240
 
        | m32r | m32rle | m68000 | m68k | m88k | mcore \
 
237
        | ip2k \
 
238
        | m32r | m68000 | m68k | m88k | mcore \
241
239
        | mips | mipsbe | mipseb | mipsel | mipsle \
242
240
        | mips16 \
243
241
        | mips64 | mips64el \
247
245
        | mips64vr4300 | mips64vr4300el \
248
246
        | mips64vr5000 | mips64vr5000el \
249
247
        | mipsisa32 | mipsisa32el \
250
 
        | mipsisa32r2 | mipsisa32r2el \
251
248
        | mipsisa64 | mipsisa64el \
252
 
        | mipsisa64r2 | mipsisa64r2el \
253
249
        | mipsisa64sb1 | mipsisa64sb1el \
254
250
        | mipsisa64sr71k | mipsisa64sr71kel \
255
251
        | mipstx39 | mipstx39el \
256
252
        | mn10200 | mn10300 \
257
 
        | msp430 \
258
253
        | ns16k | ns32k \
259
254
        | openrisc | or32 \
260
255
        | pdp10 | pdp11 | pj | pjl \
261
256
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
262
257
        | pyramid \
263
 
        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
258
        | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
264
259
        | sh64 | sh64le \
265
 
        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
 
260
        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
266
261
        | strongarm \
267
 
        | tahoe | thumb | tic4x | tic80 | tron \
 
262
        | tahoe | thumb | tic80 | tron \
268
263
        | v850 | v850e \
269
264
        | we32k \
270
265
        | x86 | xscale | xstormy16 | xtensa \
299
294
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
300
295
        | avr-* \
301
296
        | bs2000-* \
302
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
297
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \
303
298
        | clipper-* | cydra-* \
304
299
        | d10v-* | d30v-* | dlx-* \
305
300
        | elxsi-* \
307
302
        | h8300-* | h8500-* \
308
303
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
309
304
        | i*86-* | i860-* | i960-* | ia64-* \
310
 
        | ip2k-* | iq2000-* \
311
 
        | m32r-* | m32rle-* \
 
305
        | ip2k-* \
 
306
        | m32r-* \
312
307
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
313
308
        | m88110-* | m88k-* | mcore-* \
314
309
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
320
315
        | mips64vr4300-* | mips64vr4300el-* \
321
316
        | mips64vr5000-* | mips64vr5000el-* \
322
317
        | mipsisa32-* | mipsisa32el-* \
323
 
        | mipsisa32r2-* | mipsisa32r2el-* \
324
318
        | mipsisa64-* | mipsisa64el-* \
325
 
        | mipsisa64r2-* | mipsisa64r2el-* \
326
319
        | mipsisa64sb1-* | mipsisa64sb1el-* \
327
320
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
328
 
        | mipstx39-* | mipstx39el-* \
329
 
        | msp430-* \
330
 
        | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
 
321
        | mipstx39 | mipstx39el \
 
322
        | none-* | np1-* | ns16k-* | ns32k-* \
331
323
        | orion-* \
332
324
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
333
325
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
334
326
        | pyramid-* \
335
327
        | romp-* | rs6000-* \
336
 
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
328
        | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \
337
329
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
338
330
        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
339
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
340
 
        | tahoe-* | thumb-* \
341
 
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
342
 
        | tron-* \
 
331
        | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
 
332
        | tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \
343
333
        | v850-* | v850e-* | vax-* \
344
334
        | we32k-* \
345
335
        | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
363
353
                basic_machine=a29k-amd
364
354
                os=-udi
365
355
                ;;
366
 
        abacus)
367
 
                basic_machine=abacus-unknown
368
 
                ;;
369
356
        adobe68k)
370
357
                basic_machine=m68010-adobe
371
358
                os=-scout
380
367
                basic_machine=a29k-none
381
368
                os=-bsd
382
369
                ;;
383
 
        amd64)
384
 
                basic_machine=x86_64-pc
385
 
                ;;
386
 
        amd64-*)
387
 
                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
388
 
                ;;
389
370
        amdahl)
390
371
                basic_machine=580-amdahl
391
372
                os=-sysv
445
426
                basic_machine=j90-cray
446
427
                os=-unicos
447
428
                ;;
448
 
        cr16c)
449
 
                basic_machine=cr16c-unknown
450
 
                os=-elf
451
 
                ;;
452
429
        crds | unos)
453
430
                basic_machine=m68k-crds
454
431
                ;;
455
432
        cris | cris-* | etrax*)
456
433
                basic_machine=cris-axis
457
434
                ;;
458
 
        crx)
459
 
                basic_machine=crx-unknown
460
 
                os=-elf
461
 
                ;;
462
435
        da30 | da30-*)
463
436
                basic_machine=m68k-da30
464
437
                ;;
743
716
        np1)
744
717
                basic_machine=np1-gould
745
718
                ;;
746
 
        nv1)
747
 
                basic_machine=nv1-cray
748
 
                os=-unicosmp
749
 
                ;;
750
719
        nsr-tandem)
751
720
                basic_machine=nsr-tandem
752
721
                ;;
758
727
                basic_machine=or32-unknown
759
728
                os=-coff
760
729
                ;;
761
 
        os400)
762
 
                basic_machine=powerpc-ibm
763
 
                os=-os400
764
 
                ;;
765
730
        OSE68000 | ose68000)
766
731
                basic_machine=m68000-ericsson
767
732
                os=-ose
793
758
        pentiumpro | p6 | 6x86 | athlon | athlon_*)
794
759
                basic_machine=i686-pc
795
760
                ;;
796
 
        pentiumii | pentium2 | pentiumiii | pentium3)
 
761
        pentiumii | pentium2)
797
762
                basic_machine=i686-pc
798
763
                ;;
799
 
        pentium4)
800
 
                basic_machine=i786-pc
801
 
                ;;
802
764
        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
803
765
                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
804
766
                ;;
805
767
        pentiumpro-* | p6-* | 6x86-* | athlon-*)
806
768
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
807
769
                ;;
808
 
        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
 
770
        pentiumii-* | pentium2-*)
809
771
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
810
772
                ;;
811
 
        pentium4-*)
812
 
                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
813
 
                ;;
814
773
        pn)
815
774
                basic_machine=pn-gould
816
775
                ;;
869
828
        sb1el)
870
829
                basic_machine=mipsisa64sb1el-unknown
871
830
                ;;
872
 
        sei)
873
 
                basic_machine=mips-sei
874
 
                os=-seiux
875
 
                ;;
876
831
        sequent)
877
832
                basic_machine=i386-sequent
878
833
                ;;
880
835
                basic_machine=sh-hitachi
881
836
                os=-hms
882
837
                ;;
883
 
        sh64)
884
 
                basic_machine=sh64-unknown
885
 
                ;;
886
838
        sparclite-wrs | simso-wrs)
887
839
                basic_machine=sparclite-wrs
888
840
                os=-vxworks
949
901
                basic_machine=i386-sequent
950
902
                os=-dynix
951
903
                ;;
 
904
        t3d)
 
905
                basic_machine=alpha-cray
 
906
                os=-unicos
 
907
                ;;
952
908
        t3e)
953
909
                basic_machine=alphaev5-cray
954
910
                os=-unicos
957
913
                basic_machine=t90-cray
958
914
                os=-unicos
959
915
                ;;
 
916
        tic4x | c4x*)
 
917
                basic_machine=tic4x-unknown
 
918
                os=-coff
 
919
                ;;
960
920
        tic54x | c54x*)
961
921
                basic_machine=tic54x-unknown
962
922
                os=-coff
963
923
                ;;
964
 
        tic55x | c55x*)
965
 
                basic_machine=tic55x-unknown
966
 
                os=-coff
967
 
                ;;
968
 
        tic6x | c6x*)
969
 
                basic_machine=tic6x-unknown
970
 
                os=-coff
971
 
                ;;
972
924
        tx39)
973
925
                basic_machine=mipstx39-unknown
974
926
                ;;
982
934
        tower | tower-32)
983
935
                basic_machine=m68k-ncr
984
936
                ;;
985
 
        tpf)
986
 
                basic_machine=s390x-ibm
987
 
                os=-tpf
988
 
                ;;
989
937
        udi29k)
990
938
                basic_machine=a29k-amd
991
939
                os=-udi
1029
977
                basic_machine=hppa1.1-winbond
1030
978
                os=-proelf
1031
979
                ;;
 
980
        windows32)
 
981
                basic_machine=i386-pc
 
982
                os=-windows32-msvcrt
 
983
                ;;
1032
984
        xps | xps100)
1033
985
                basic_machine=xps100-honeywell
1034
986
                ;;
1075
1027
        we32k)
1076
1028
                basic_machine=we32k-att
1077
1029
                ;;
1078
 
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
 
1030
        sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele)
1079
1031
                basic_machine=sh-unknown
1080
1032
                ;;
1081
1033
        sh64)
1082
1034
                basic_machine=sh64-unknown
1083
1035
                ;;
1084
 
        sparc | sparcv8 | sparcv9 | sparcv9b)
 
1036
        sparc | sparcv9 | sparcv9b)
1085
1037
                basic_machine=sparc-sun
1086
1038
                ;;
1087
1039
        cydra)
1154
1106
              | -aos* \
1155
1107
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1156
1108
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1157
 
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
1158
 
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1159
 
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
 
1109
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
 
1110
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1160
1111
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1161
1112
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1162
1113
              | -chorusos* | -chorusrdb* \
1163
1114
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1164
 
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1165
 
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
 
1115
              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1116
              | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
1166
1117
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1167
1118
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1168
1119
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1169
 
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1170
 
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
 
1120
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*)
1171
1121
        # Remember, each alternative MUST END IN *, to match a version number.
1172
1122
                ;;
1173
1123
        -qnx*)
1179
1129
                        ;;
1180
1130
                esac
1181
1131
                ;;
1182
 
        -nto-qnx*)
1183
 
                ;;
1184
1132
        -nto*)
1185
 
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
 
1133
                os=-nto-qnx
1186
1134
                ;;
1187
1135
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1188
1136
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1191
1139
        -mac*)
1192
1140
                os=`echo $os | sed -e 's|mac|macos|'`
1193
1141
                ;;
1194
 
        -linux-dietlibc)
1195
 
                os=-linux-dietlibc
1196
 
                ;;
1197
1142
        -linux*)
1198
1143
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
1199
1144
                ;;
1206
1151
        -opened*)
1207
1152
                os=-openedition
1208
1153
                ;;
1209
 
        -os400*)
1210
 
                os=-os400
1211
 
                ;;
1212
1154
        -wince*)
1213
1155
                os=-wince
1214
1156
                ;;
1230
1172
        -atheos*)
1231
1173
                os=-atheos
1232
1174
                ;;
1233
 
        -syllable*)
1234
 
                os=-syllable
1235
 
                ;;
1236
1175
        -386bsd)
1237
1176
                os=-bsd
1238
1177
                ;;
1255
1194
        -sinix*)
1256
1195
                os=-sysv4
1257
1196
                ;;
1258
 
        -tpf*)
1259
 
                os=-tpf
1260
 
                ;;
1261
1197
        -triton*)
1262
1198
                os=-sysv3
1263
1199
                ;;
1288
1224
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1289
1225
                os=-mint
1290
1226
                ;;
1291
 
        -aros*)
1292
 
                os=-aros
1293
 
                ;;
1294
 
        -kaos*)
1295
 
                os=-kaos
1296
 
                ;;
1297
1227
        -none)
1298
1228
                ;;
1299
1229
        *)
1325
1255
        arm*-semi)
1326
1256
                os=-aout
1327
1257
                ;;
1328
 
    c4x-* | tic4x-*)
1329
 
        os=-coff
1330
 
        ;;
1331
1258
        # This must come before the *-dec entry.
1332
1259
        pdp10-*)
1333
1260
                os=-tops20
1506
1433
                        -mvs* | -opened*)
1507
1434
                                vendor=ibm
1508
1435
                                ;;
1509
 
                        -os400*)
1510
 
                                vendor=ibm
1511
 
                                ;;
1512
1436
                        -ptx*)
1513
1437
                                vendor=sequent
1514
1438
                                ;;
1515
 
                        -tpf*)
1516
 
                                vendor=ibm
1517
 
                                ;;
1518
1439
                        -vxsim* | -vxworks* | -windiss*)
1519
1440
                                vendor=wrs
1520
1441
                                ;;