~ubuntu-branches/debian/sid/rlinetd/sid

« back to all changes in this revision

Viewing changes to auxiliary/config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Robert Luberda
  • Date: 2007-03-21 23:21:31 UTC
  • mfrom: (2.1.2 edgy)
  • Revision ID: james.westby@ubuntu.com-20070321232131-q05ux83vd5q6dosw
Tags: 0.6-3
* grammar.y: fix stack corruption error, that prevented rlinetd from
  stopping properly when RPC are enabled. The bug occurred in the
  rlp_cleanup() function, was introduced in the previous release and
  is caused by my misunderstanding of numlist_copy() function, which
  joins two lists together rather than making a simple copy.
  Simple NULL-ification of the destination list before the above function
  is called fixes the problem.
* grammar.y: fix similar bug, that happens when the rpc token is used
  in the "default" configuration section (however hardly likely anybody
  will ever configure rlinetd in that way).

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 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2004-11-30'
 
6
timestamp='2006-02-23'
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
21
21
#
22
22
# You should have received a copy of the GNU General Public License
23
23
# along with this program; if not, write to the Free Software
24
 
# Foundation, Inc., 59 Temple Place - Suite 330,
25
 
# Boston, MA 02111-1307, USA.
26
 
 
 
24
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
 
25
# 02110-1301, USA.
 
26
#
27
27
# As a special exception to the GNU General Public License, if you
28
28
# distribute this file as part of a program that contains a
29
29
# configuration script generated by Autoconf, you may include it under
30
30
# the same distribution terms that you use for the rest of that program.
31
31
 
 
32
 
32
33
# Please send patches to <config-patches@gnu.org>.  Submit a context
33
34
# diff and a properly formatted ChangeLog entry.
34
35
#
70
71
version="\
71
72
GNU config.sub ($timestamp)
72
73
 
73
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 
74
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
74
75
Free Software Foundation, Inc.
75
76
 
76
77
This is free software; see the source for copying conditions.  There is NO
83
84
while test $# -gt 0 ; do
84
85
  case $1 in
85
86
    --time-stamp | --time* | -t )
86
 
       echo "$timestamp" ; exit 0 ;;
 
87
       echo "$timestamp" ; exit ;;
87
88
    --version | -v )
88
 
       echo "$version" ; exit 0 ;;
 
89
       echo "$version" ; exit ;;
89
90
    --help | --h* | -h )
90
 
       echo "$usage"; exit 0 ;;
 
91
       echo "$usage"; exit ;;
91
92
    -- )     # Stop option processing
92
93
       shift; break ;;
93
94
    - ) # Use stdin as input.
99
100
    *local*)
100
101
       # First pass through any local machine types.
101
102
       echo $1
102
 
       exit 0;;
 
103
       exit ;;
103
104
 
104
105
    * )
105
106
       break ;;
118
119
# Here we must recognize all the valid KERNEL-OS combinations.
119
120
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120
121
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*)
 
122
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
 
123
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
 
124
  storm-chaos* | os2-emx* | rtmk-nova*)
123
125
    os=-$maybe_os
124
126
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
125
127
    ;;
170
172
        -hiux*)
171
173
                os=-hiuxwe2
172
174
                ;;
 
175
        -sco6)
 
176
                os=-sco5v6
 
177
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
178
                ;;
173
179
        -sco5)
174
180
                os=-sco3.2v5
175
181
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186
192
                # Don't forget version if it is 3.2v4 or newer.
187
193
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
188
194
                ;;
 
195
        -sco5v6*)
 
196
                # Don't forget version if it is 3.2v4 or newer.
 
197
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
198
                ;;
189
199
        -sco*)
190
200
                os=-sco3.2v2
191
201
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
231
241
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
232
242
        | am33_2.0 \
233
243
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
244
        | bfin \
234
245
        | c4x | clipper \
235
246
        | d10v | d30v | dlx | dsp16xx \
236
247
        | fr30 | frv \
237
248
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
238
249
        | i370 | i860 | i960 | ia64 \
239
250
        | ip2k | iq2000 \
240
 
        | m32r | m32rle | m68000 | m68k | m88k | mcore \
 
251
        | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \
241
252
        | mips | mipsbe | mipseb | mipsel | mipsle \
242
253
        | mips16 \
243
254
        | mips64 | mips64el \
246
257
        | mips64vr4100 | mips64vr4100el \
247
258
        | mips64vr4300 | mips64vr4300el \
248
259
        | mips64vr5000 | mips64vr5000el \
 
260
        | mips64vr5900 | mips64vr5900el \
249
261
        | mipsisa32 | mipsisa32el \
250
262
        | mipsisa32r2 | mipsisa32r2el \
251
263
        | mipsisa64 | mipsisa64el \
254
266
        | mipsisa64sr71k | mipsisa64sr71kel \
255
267
        | mipstx39 | mipstx39el \
256
268
        | mn10200 | mn10300 \
 
269
        | mt \
257
270
        | msp430 \
 
271
        | nios | nios2 \
258
272
        | ns16k | ns32k \
259
 
        | openrisc | or32 \
 
273
        | or32 \
260
274
        | pdp10 | pdp11 | pj | pjl \
261
275
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
262
276
        | pyramid \
263
 
        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
277
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
264
278
        | sh64 | sh64le \
265
 
        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
 
279
        | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
 
280
        | sparcv8 | sparcv9 | sparcv9b \
266
281
        | strongarm \
267
282
        | tahoe | thumb | tic4x | tic80 | tron \
268
283
        | v850 | v850e \
271
286
        | z8k)
272
287
                basic_machine=$basic_machine-unknown
273
288
                ;;
 
289
        m32c)
 
290
                basic_machine=$basic_machine-unknown
 
291
                ;;
274
292
        m6811 | m68hc11 | m6812 | m68hc12)
275
293
                # Motorola 68HC11/12.
276
294
                basic_machine=$basic_machine-unknown
278
296
                ;;
279
297
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
280
298
                ;;
 
299
        ms1)
 
300
                basic_machine=mt-unknown
 
301
                ;;
281
302
 
282
303
        # We use `pc' rather than `unknown'
283
304
        # because (1) that's what they normally are, and
298
319
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
299
320
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
300
321
        | avr-* \
301
 
        | bs2000-* \
 
322
        | bfin-* | bs2000-* \
302
323
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
303
324
        | clipper-* | craynv-* | cydra-* \
304
325
        | d10v-* | d30v-* | dlx-* \
310
331
        | ip2k-* | iq2000-* \
311
332
        | m32r-* | m32rle-* \
312
333
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
313
 
        | m88110-* | m88k-* | mcore-* \
 
334
        | m88110-* | m88k-* | maxq-* | mcore-* \
314
335
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
315
336
        | mips16-* \
316
337
        | mips64-* | mips64el-* \
319
340
        | mips64vr4100-* | mips64vr4100el-* \
320
341
        | mips64vr4300-* | mips64vr4300el-* \
321
342
        | mips64vr5000-* | mips64vr5000el-* \
 
343
        | mips64vr5900-* | mips64vr5900el-* \
322
344
        | mipsisa32-* | mipsisa32el-* \
323
345
        | mipsisa32r2-* | mipsisa32r2el-* \
324
346
        | mipsisa64-* | mipsisa64el-* \
327
349
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
328
350
        | mipstx39-* | mipstx39el-* \
329
351
        | mmix-* \
 
352
        | mt-* \
330
353
        | msp430-* \
 
354
        | nios-* | nios2-* \
331
355
        | none-* | np1-* | ns16k-* | ns32k-* \
332
356
        | orion-* \
333
357
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
334
358
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
335
359
        | pyramid-* \
336
360
        | romp-* | rs6000-* \
337
 
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
361
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
338
362
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
339
 
        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
 
363
        | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
 
364
        | sparclite-* \
340
365
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
341
366
        | tahoe-* | thumb-* \
342
367
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
348
373
        | ymp-* \
349
374
        | z8k-*)
350
375
                ;;
 
376
        m32c-*)
 
377
                ;;
351
378
        # Recognize the various machine names and aliases which stand
352
379
        # for a CPU type and a company and sometimes even an OS.
353
380
        386bsd)
683
710
                basic_machine=i386-pc
684
711
                os=-msdos
685
712
                ;;
 
713
        ms1-*)
 
714
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
 
715
                ;;
686
716
        mvs)
687
717
                basic_machine=i370-ibm
688
718
                os=-mvs
758
788
                basic_machine=hppa1.1-oki
759
789
                os=-proelf
760
790
                ;;
761
 
        or32 | or32-*)
 
791
        openrisc | openrisc-*)
762
792
                basic_machine=or32-unknown
763
 
                os=-coff
764
793
                ;;
765
794
        os400)
766
795
                basic_machine=powerpc-ibm
791
820
        pc532 | pc532-*)
792
821
                basic_machine=ns32k-pc532
793
822
                ;;
 
823
        pc98)
 
824
                basic_machine=i386-pc
 
825
                ;;
 
826
        pc98-*)
 
827
                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
 
828
                ;;
794
829
        pentium | p5 | k5 | k6 | nexgen | viac3)
795
830
                basic_machine=i586-pc
796
831
                ;;
847
882
                basic_machine=i586-unknown
848
883
                os=-pw32
849
884
                ;;
 
885
        rdos)
 
886
                basic_machine=i386-pc
 
887
                os=-rdos
 
888
                ;;
850
889
        rom68k)
851
890
                basic_machine=m68k-rom68k
852
891
                os=-coff
1086
1125
        we32k)
1087
1126
                basic_machine=we32k-att
1088
1127
                ;;
1089
 
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
 
1128
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1090
1129
                basic_machine=sh-unknown
1091
1130
                ;;
1092
 
        sh64)
1093
 
                basic_machine=sh64-unknown
1094
 
                ;;
1095
1131
        sparc | sparcv8 | sparcv9 | sparcv9b)
1096
1132
                basic_machine=sparc-sun
1097
1133
                ;;
1165
1201
              | -aos* \
1166
1202
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1167
1203
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1168
 
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
 
1204
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
 
1205
              | -openbsd* | -solidbsd* \
1169
1206
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1170
1207
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1171
1208
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1172
1209
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1173
1210
              | -chorusos* | -chorusrdb* \
1174
1211
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1175
 
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1212
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1213
              | -uxpv* | -beos* | -mpeix* | -udk* \
1176
1214
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1177
1215
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1178
1216
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1179
1217
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1180
1218
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1181
 
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
 
1219
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
 
1220
              | -skyos* | -haiku* | -rdos*)
1182
1221
        # Remember, each alternative MUST END IN *, to match a version number.
1183
1222
                ;;
1184
1223
        -qnx*)
1196
1235
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1197
1236
                ;;
1198
1237
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1199
 
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
 
1238
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1200
1239
              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1201
1240
                ;;
1202
1241
        -mac*)
1385
1424
        *-be)
1386
1425
                os=-beos
1387
1426
                ;;
 
1427
        *-haiku)
 
1428
                os=-haiku
 
1429
                ;;
1388
1430
        *-ibm)
1389
1431
                os=-aix
1390
1432
                ;;
1556
1598
esac
1557
1599
 
1558
1600
echo $basic_machine$os
1559
 
exit 0
 
1601
exit
1560
1602
 
1561
1603
# Local variables:
1562
1604
# eval: (add-hook 'write-file-hooks 'time-stamp)