Reverting all the dbus related commits (sigh) from 27th July and fixing a QA issue...
[oespirit1] / hildon-control-panel / mer-changes.patch
1 --- hildon-control-panel-2.2.6/config.guess
2 +++ hildon-control-panel-2.2.6/config.guess
3 @@ -1,9 +1,10 @@
4  #! /bin/sh
5  # Attempt to guess a canonical system name.
6  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
7 -#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
8 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
9 +#   Free Software Foundation, Inc.
10  
11 -timestamp='2005-04-22'
12 +timestamp='2008-01-23'
13  
14  # This file is free software; you can redistribute it and/or modify it
15  # under the terms of the GNU General Public License as published by
16 @@ -17,13 +18,15 @@
17  #
18  # You should have received a copy of the GNU General Public License
19  # along with this program; if not, write to the Free Software
20 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
22 +# 02110-1301, USA.
23  #
24  # As a special exception to the GNU General Public License, if you
25  # distribute this file as part of a program that contains a
26  # configuration script generated by Autoconf, you may include it under
27  # the same distribution terms that you use for the rest of that program.
28  
29 +
30  # Originally written by Per Bothner <per@bothner.com>.
31  # Please send patches to <config-patches@gnu.org>.  Submit a context
32  # diff and a properly formatted ChangeLog entry.
33 @@ -53,8 +56,8 @@
34  GNU config.guess ($timestamp)
35  
36  Originally written by Per Bothner.
37 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
38 -Free Software Foundation, Inc.
39 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
40 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
41  
42  This is free software; see the source for copying conditions.  There is NO
43  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
44 @@ -66,11 +69,11 @@
45  while test $# -gt 0 ; do
46    case $1 in
47      --time-stamp | --time* | -t )
48 -       echo "$timestamp" ; exit 0 ;;
49 +       echo "$timestamp" ; exit ;;
50      --version | -v )
51 -       echo "$version" ; exit 0 ;;
52 +       echo "$version" ; exit ;;
53      --help | --h* | -h )
54 -       echo "$usage"; exit 0 ;;
55 +       echo "$usage"; exit ;;
56      -- )     # Stop option processing
57         shift; break ;;
58      - )        # Use stdin as input.
59 @@ -104,7 +107,7 @@
60  trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
61  trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
62  : ${TMPDIR=/tmp} ;
63 - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
64 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
65   { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
66   { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
67   { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
68 @@ -123,7 +126,7 @@
69         ;;
70   ,,*)   CC_FOR_BUILD=$CC ;;
71   ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
72 -esac ;'
73 +esac ; set_cc_for_build= ;'
74  
75  # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
76  # (ghazi@noc.rutgers.edu 1994-08-24)
77 @@ -158,6 +161,7 @@
78             arm*) machine=arm-unknown ;;
79             sh3el) machine=shl-unknown ;;
80             sh3eb) machine=sh-unknown ;;
81 +           sh5el) machine=sh5le-unknown ;;
82             *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
83         esac
84         # The Operating System including object format, if it has switched
85 @@ -196,55 +200,23 @@
86         # contains redundant information, the shorter form:
87         # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
88         echo "${machine}-${os}${release}"
89 -       exit 0 ;;
90 -    amd64:OpenBSD:*:*)
91 -       echo x86_64-unknown-openbsd${UNAME_RELEASE}
92 -       exit 0 ;;
93 -    amiga:OpenBSD:*:*)
94 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
95 -       exit 0 ;;
96 -    cats:OpenBSD:*:*)
97 -       echo arm-unknown-openbsd${UNAME_RELEASE}
98 -       exit 0 ;;
99 -    hp300:OpenBSD:*:*)
100 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
101 -       exit 0 ;;
102 -    luna88k:OpenBSD:*:*)
103 -       echo m88k-unknown-openbsd${UNAME_RELEASE}
104 -       exit 0 ;;
105 -    mac68k:OpenBSD:*:*)
106 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
107 -       exit 0 ;;
108 -    macppc:OpenBSD:*:*)
109 -       echo powerpc-unknown-openbsd${UNAME_RELEASE}
110 -       exit 0 ;;
111 -    mvme68k:OpenBSD:*:*)
112 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
113 -       exit 0 ;;
114 -    mvme88k:OpenBSD:*:*)
115 -       echo m88k-unknown-openbsd${UNAME_RELEASE}
116 -       exit 0 ;;
117 -    mvmeppc:OpenBSD:*:*)
118 -       echo powerpc-unknown-openbsd${UNAME_RELEASE}
119 -       exit 0 ;;
120 -    sgi:OpenBSD:*:*)
121 -       echo mips64-unknown-openbsd${UNAME_RELEASE}
122 -       exit 0 ;;
123 -    sun3:OpenBSD:*:*)
124 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
125 -       exit 0 ;;
126 +       exit ;;
127      *:OpenBSD:*:*)
128 -       echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
129 -       exit 0 ;;
130 +       UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
131 +       echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
132 +       exit ;;
133      *:ekkoBSD:*:*)
134         echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
135 -       exit 0 ;;
136 +       exit ;;
137 +    *:SolidBSD:*:*)
138 +       echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
139 +       exit ;;
140      macppc:MirBSD:*:*)
141 -       echo powerppc-unknown-mirbsd${UNAME_RELEASE}
142 -       exit 0 ;;
143 +       echo powerpc-unknown-mirbsd${UNAME_RELEASE}
144 +       exit ;;
145      *:MirBSD:*:*)
146         echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
147 -       exit 0 ;;
148 +       exit ;;
149      alpha:OSF1:*:*)
150         case $UNAME_RELEASE in
151         *4.0)
152 @@ -297,40 +269,43 @@
153         # A Xn.n version is an unreleased experimental baselevel.
154         # 1.2 uses "1.2" for uname -r.
155         echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
156 -       exit 0 ;;
157 +       exit ;;
158      Alpha\ *:Windows_NT*:*)
159         # How do we know it's Interix rather than the generic POSIX subsystem?
160         # Should we change UNAME_MACHINE based on the output of uname instead
161         # of the specific Alpha model?
162         echo alpha-pc-interix
163 -       exit 0 ;;
164 +       exit ;;
165      21064:Windows_NT:50:3)
166         echo alpha-dec-winnt3.5
167 -       exit 0 ;;
168 +       exit ;;
169      Amiga*:UNIX_System_V:4.0:*)
170         echo m68k-unknown-sysv4
171 -       exit 0;;
172 +       exit ;;
173      *:[Aa]miga[Oo][Ss]:*:*)
174         echo ${UNAME_MACHINE}-unknown-amigaos
175 -       exit 0 ;;
176 +       exit ;;
177      *:[Mm]orph[Oo][Ss]:*:*)
178         echo ${UNAME_MACHINE}-unknown-morphos
179 -       exit 0 ;;
180 +       exit ;;
181      *:OS/390:*:*)
182         echo i370-ibm-openedition
183 -       exit 0 ;;
184 +       exit ;;
185      *:z/VM:*:*)
186         echo s390-ibm-zvmoe
187 -       exit 0 ;;
188 +       exit ;;
189      *:OS400:*:*)
190          echo powerpc-ibm-os400
191 -       exit 0 ;;
192 +       exit ;;
193      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
194         echo arm-acorn-riscix${UNAME_RELEASE}
195 -       exit 0;;
196 +       exit ;;
197 +    arm:riscos:*:*|arm:RISCOS:*:*)
198 +       echo arm-unknown-riscos
199 +       exit ;;
200      SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
201         echo hppa1.1-hitachi-hiuxmpp
202 -       exit 0;;
203 +       exit ;;
204      Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
205         # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
206         if test "`(/bin/universe) 2>/dev/null`" = att ; then
207 @@ -338,32 +313,32 @@
208         else
209                 echo pyramid-pyramid-bsd
210         fi
211 -       exit 0 ;;
212 +       exit ;;
213      NILE*:*:*:dcosx)
214         echo pyramid-pyramid-svr4
215 -       exit 0 ;;
216 +       exit ;;
217      DRS?6000:unix:4.0:6*)
218         echo sparc-icl-nx6
219 -       exit 0 ;;
220 +       exit ;;
221      DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
222         case `/usr/bin/uname -p` in
223 -           sparc) echo sparc-icl-nx7 && exit 0 ;;
224 +           sparc) echo sparc-icl-nx7; exit ;;
225         esac ;;
226      sun4H:SunOS:5.*:*)
227         echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
228 -       exit 0 ;;
229 +       exit ;;
230      sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
231         echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
232 -       exit 0 ;;
233 -    i86pc:SunOS:5.*:*)
234 +       exit ;;
235 +    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
236         echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
237 -       exit 0 ;;
238 +       exit ;;
239      sun4*:SunOS:6*:*)
240         # According to config.sub, this is the proper way to canonicalize
241         # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
242         # it's likely to be more like Solaris than SunOS4.
243         echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
244 -       exit 0 ;;
245 +       exit ;;
246      sun4*:SunOS:*:*)
247         case "`/usr/bin/arch -k`" in
248             Series*|S4*)
249 @@ -372,10 +347,10 @@
250         esac
251         # Japanese Language versions have a version number like `4.1.3-JL'.
252         echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
253 -       exit 0 ;;
254 +       exit ;;
255      sun3*:SunOS:*:*)
256         echo m68k-sun-sunos${UNAME_RELEASE}
257 -       exit 0 ;;
258 +       exit ;;
259      sun*:*:4.2BSD:*)
260         UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
261         test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
262 @@ -387,10 +362,10 @@
263                 echo sparc-sun-sunos${UNAME_RELEASE}
264                 ;;
265         esac
266 -       exit 0 ;;
267 +       exit ;;
268      aushp:SunOS:*:*)
269         echo sparc-auspex-sunos${UNAME_RELEASE}
270 -       exit 0 ;;
271 +       exit ;;
272      # The situation for MiNT is a little confusing.  The machine name
273      # can be virtually everything (everything which is not
274      # "atarist" or "atariste" at least should have a processor
275 @@ -401,40 +376,40 @@
276      # be no problem.
277      atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
278          echo m68k-atari-mint${UNAME_RELEASE}
279 -       exit 0 ;;
280 +       exit ;;
281      atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
282         echo m68k-atari-mint${UNAME_RELEASE}
283 -        exit 0 ;;
284 +        exit ;;
285      *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
286          echo m68k-atari-mint${UNAME_RELEASE}
287 -       exit 0 ;;
288 +       exit ;;
289      milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
290          echo m68k-milan-mint${UNAME_RELEASE}
291 -        exit 0 ;;
292 +        exit ;;
293      hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
294          echo m68k-hades-mint${UNAME_RELEASE}
295 -        exit 0 ;;
296 +        exit ;;
297      *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
298          echo m68k-unknown-mint${UNAME_RELEASE}
299 -        exit 0 ;;
300 +        exit ;;
301      m68k:machten:*:*)
302         echo m68k-apple-machten${UNAME_RELEASE}
303 -       exit 0 ;;
304 +       exit ;;
305      powerpc:machten:*:*)
306         echo powerpc-apple-machten${UNAME_RELEASE}
307 -       exit 0 ;;
308 +       exit ;;
309      RISC*:Mach:*:*)
310         echo mips-dec-mach_bsd4.3
311 -       exit 0 ;;
312 +       exit ;;
313      RISC*:ULTRIX:*:*)
314         echo mips-dec-ultrix${UNAME_RELEASE}
315 -       exit 0 ;;
316 +       exit ;;
317      VAX*:ULTRIX*:*:*)
318         echo vax-dec-ultrix${UNAME_RELEASE}
319 -       exit 0 ;;
320 +       exit ;;
321      2020:CLIX:*:* | 2430:CLIX:*:*)
322         echo clipper-intergraph-clix${UNAME_RELEASE}
323 -       exit 0 ;;
324 +       exit ;;
325      mips:*:*:UMIPS | mips:*:*:RISCos)
326         eval $set_cc_for_build
327         sed 's/^        //' << EOF >$dummy.c
328 @@ -458,32 +433,33 @@
329           exit (-1);
330         }
331  EOF
332 -       $CC_FOR_BUILD -o $dummy $dummy.c \
333 -         && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
334 -         && exit 0
335 +       $CC_FOR_BUILD -o $dummy $dummy.c &&
336 +         dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
337 +         SYSTEM_NAME=`$dummy $dummyarg` &&
338 +           { echo "$SYSTEM_NAME"; exit; }
339         echo mips-mips-riscos${UNAME_RELEASE}
340 -       exit 0 ;;
341 +       exit ;;
342      Motorola:PowerMAX_OS:*:*)
343         echo powerpc-motorola-powermax
344 -       exit 0 ;;
345 +       exit ;;
346      Motorola:*:4.3:PL8-*)
347         echo powerpc-harris-powermax
348 -       exit 0 ;;
349 +       exit ;;
350      Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
351         echo powerpc-harris-powermax
352 -       exit 0 ;;
353 +       exit ;;
354      Night_Hawk:Power_UNIX:*:*)
355         echo powerpc-harris-powerunix
356 -       exit 0 ;;
357 +       exit ;;
358      m88k:CX/UX:7*:*)
359         echo m88k-harris-cxux7
360 -       exit 0 ;;
361 +       exit ;;
362      m88k:*:4*:R4*)
363         echo m88k-motorola-sysv4
364 -       exit 0 ;;
365 +       exit ;;
366      m88k:*:3*:R3*)
367         echo m88k-motorola-sysv3
368 -       exit 0 ;;
369 +       exit ;;
370      AViiON:dgux:*:*)
371          # DG/UX returns AViiON for all architectures
372          UNAME_PROCESSOR=`/usr/bin/uname -p`
373 @@ -499,29 +475,29 @@
374         else
375             echo i586-dg-dgux${UNAME_RELEASE}
376         fi
377 -       exit 0 ;;
378 +       exit ;;
379      M88*:DolphinOS:*:*)        # DolphinOS (SVR3)
380         echo m88k-dolphin-sysv3
381 -       exit 0 ;;
382 +       exit ;;
383      M88*:*:R3*:*)
384         # Delta 88k system running SVR3
385         echo m88k-motorola-sysv3
386 -       exit 0 ;;
387 +       exit ;;
388      XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
389         echo m88k-tektronix-sysv3
390 -       exit 0 ;;
391 +       exit ;;
392      Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
393         echo m68k-tektronix-bsd
394 -       exit 0 ;;
395 +       exit ;;
396      *:IRIX*:*:*)
397         echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
398 -       exit 0 ;;
399 +       exit ;;
400      ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
401 -       echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
402 -       exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
403 +       echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
404 +       exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
405      i*86:AIX:*:*)
406         echo i386-ibm-aix
407 -       exit 0 ;;
408 +       exit ;;
409      ia64:AIX:*:*)
410         if [ -x /usr/bin/oslevel ] ; then
411                 IBM_REV=`/usr/bin/oslevel`
412 @@ -529,7 +505,7 @@
413                 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
414         fi
415         echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
416 -       exit 0 ;;
417 +       exit ;;
418      *:AIX:2:3)
419         if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
420                 eval $set_cc_for_build
421 @@ -544,15 +520,19 @@
422                         exit(0);
423                         }
424  EOF
425 -               $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
426 -               echo rs6000-ibm-aix3.2.5
427 +               if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
428 +               then
429 +                       echo "$SYSTEM_NAME"
430 +               else
431 +                       echo rs6000-ibm-aix3.2.5
432 +               fi
433         elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
434                 echo rs6000-ibm-aix3.2.4
435         else
436                 echo rs6000-ibm-aix3.2
437         fi
438 -       exit 0 ;;
439 -    *:AIX:*:[45])
440 +       exit ;;
441 +    *:AIX:*:[456])
442         IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
443         if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
444                 IBM_ARCH=rs6000
445 @@ -565,28 +545,28 @@
446                 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
447         fi
448         echo ${IBM_ARCH}-ibm-aix${IBM_REV}
449 -       exit 0 ;;
450 +       exit ;;
451      *:AIX:*:*)
452         echo rs6000-ibm-aix
453 -       exit 0 ;;
454 +       exit ;;
455      ibmrt:4.4BSD:*|romp-ibm:BSD:*)
456         echo romp-ibm-bsd4.4
457 -       exit 0 ;;
458 +       exit ;;
459      ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
460         echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
461 -       exit 0 ;;                           # report: romp-ibm BSD 4.3
462 +       exit ;;                             # report: romp-ibm BSD 4.3
463      *:BOSX:*:*)
464         echo rs6000-bull-bosx
465 -       exit 0 ;;
466 +       exit ;;
467      DPX/2?00:B.O.S.:*:*)
468         echo m68k-bull-sysv3
469 -       exit 0 ;;
470 +       exit ;;
471      9000/[34]??:4.3bsd:1.*:*)
472         echo m68k-hp-bsd
473 -       exit 0 ;;
474 +       exit ;;
475      hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
476         echo m68k-hp-bsd4.4
477 -       exit 0 ;;
478 +       exit ;;
479      9000/[34678]??:HP-UX:*:*)
480         HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
481         case "${UNAME_MACHINE}" in
482 @@ -648,9 +628,19 @@
483         esac
484         if [ ${HP_ARCH} = "hppa2.0w" ]
485         then
486 -           # avoid double evaluation of $set_cc_for_build
487 -           test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
488 -           if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
489 +           eval $set_cc_for_build
490 +
491 +           # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
492 +           # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
493 +           # generating 64-bit code.  GNU and HP use different nomenclature:
494 +           #
495 +           # $ CC_FOR_BUILD=cc ./config.guess
496 +           # => hppa2.0w-hp-hpux11.23
497 +           # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
498 +           # => hppa64-hp-hpux11.23
499 +
500 +           if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
501 +               grep __LP64__ >/dev/null
502             then
503                 HP_ARCH="hppa2.0w"
504             else
505 @@ -658,11 +648,11 @@
506             fi
507         fi
508         echo ${HP_ARCH}-hp-hpux${HPUX_REV}
509 -       exit 0 ;;
510 +       exit ;;
511      ia64:HP-UX:*:*)
512         HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
513         echo ia64-hp-hpux${HPUX_REV}
514 -       exit 0 ;;
515 +       exit ;;
516      3050*:HI-UX:*:*)
517         eval $set_cc_for_build
518         sed 's/^        //' << EOF >$dummy.c
519 @@ -690,161 +680,192 @@
520           exit (0);
521         }
522  EOF
523 -       $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
524 +       $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
525 +               { echo "$SYSTEM_NAME"; exit; }
526         echo unknown-hitachi-hiuxwe2
527 -       exit 0 ;;
528 +       exit ;;
529      9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
530         echo hppa1.1-hp-bsd
531 -       exit 0 ;;
532 +       exit ;;
533      9000/8??:4.3bsd:*:*)
534         echo hppa1.0-hp-bsd
535 -       exit 0 ;;
536 +       exit ;;
537      *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
538         echo hppa1.0-hp-mpeix
539 -       exit 0 ;;
540 +       exit ;;
541      hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
542         echo hppa1.1-hp-osf
543 -       exit 0 ;;
544 +       exit ;;
545      hp8??:OSF1:*:*)
546         echo hppa1.0-hp-osf
547 -       exit 0 ;;
548 +       exit ;;
549      i*86:OSF1:*:*)
550         if [ -x /usr/sbin/sysversion ] ; then
551             echo ${UNAME_MACHINE}-unknown-osf1mk
552         else
553             echo ${UNAME_MACHINE}-unknown-osf1
554         fi
555 -       exit 0 ;;
556 +       exit ;;
557      parisc*:Lites*:*:*)
558         echo hppa1.1-hp-lites
559 -       exit 0 ;;
560 +       exit ;;
561      C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
562         echo c1-convex-bsd
563 -        exit 0 ;;
564 +        exit ;;
565      C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
566         if getsysinfo -f scalar_acc
567         then echo c32-convex-bsd
568         else echo c2-convex-bsd
569         fi
570 -        exit 0 ;;
571 +        exit ;;
572      C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
573         echo c34-convex-bsd
574 -        exit 0 ;;
575 +        exit ;;
576      C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
577         echo c38-convex-bsd
578 -        exit 0 ;;
579 +        exit ;;
580      C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
581         echo c4-convex-bsd
582 -        exit 0 ;;
583 +        exit ;;
584      CRAY*Y-MP:*:*:*)
585         echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
586 -       exit 0 ;;
587 +       exit ;;
588      CRAY*[A-Z]90:*:*:*)
589         echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
590         | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
591               -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
592               -e 's/\.[^.]*$/.X/'
593 -       exit 0 ;;
594 +       exit ;;
595      CRAY*TS:*:*:*)
596         echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
597 -       exit 0 ;;
598 +       exit ;;
599      CRAY*T3E:*:*:*)
600         echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
601 -       exit 0 ;;
602 +       exit ;;
603      CRAY*SV1:*:*:*)
604         echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
605 -       exit 0 ;;
606 +       exit ;;
607      *:UNICOS/mp:*:*)
608         echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
609 -       exit 0 ;;
610 +       exit ;;
611      F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
612         FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
613          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
614          FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
615          echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
616 -        exit 0 ;;
617 +        exit ;;
618      5000:UNIX_System_V:4.*:*)
619          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
620          FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
621          echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
622 -       exit 0 ;;
623 +       exit ;;
624      i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
625         echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
626 -       exit 0 ;;
627 +       exit ;;
628      sparc*:BSD/OS:*:*)
629         echo sparc-unknown-bsdi${UNAME_RELEASE}
630 -       exit 0 ;;
631 +       exit ;;
632      *:BSD/OS:*:*)
633         echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
634 -       exit 0 ;;
635 +       exit ;;
636      *:FreeBSD:*:*)
637 -       echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
638 -       exit 0 ;;
639 +       case ${UNAME_MACHINE} in
640 +           pc98)
641 +               echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
642 +           amd64)
643 +               echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
644 +           *)
645 +               echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
646 +       esac
647 +       exit ;;
648      i*:CYGWIN*:*)
649         echo ${UNAME_MACHINE}-pc-cygwin
650 -       exit 0 ;;
651 -    i*:MINGW*:*)
652 +       exit ;;
653 +    *:MINGW*:*)
654         echo ${UNAME_MACHINE}-pc-mingw32
655 -       exit 0 ;;
656 +       exit ;;
657 +    i*:windows32*:*)
658 +       # uname -m includes "-pc" on this system.
659 +       echo ${UNAME_MACHINE}-mingw32
660 +       exit ;;
661      i*:PW*:*)
662         echo ${UNAME_MACHINE}-pc-pw32
663 -       exit 0 ;;
664 -    x86:Interix*:[34]*)
665 -       echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
666 -       exit 0 ;;
667 +       exit ;;
668 +    *:Interix*:[3456]*)
669 +       case ${UNAME_MACHINE} in
670 +           x86)
671 +               echo i586-pc-interix${UNAME_RELEASE}
672 +               exit ;;
673 +           EM64T | authenticamd)
674 +               echo x86_64-unknown-interix${UNAME_RELEASE}
675 +               exit ;;
676 +           IA64)
677 +               echo ia64-unknown-interix${UNAME_RELEASE}
678 +               exit ;;
679 +       esac ;;
680      [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
681         echo i${UNAME_MACHINE}-pc-mks
682 -       exit 0 ;;
683 +       exit ;;
684      i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
685         # How do we know it's Interix rather than the generic POSIX subsystem?
686         # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
687         # UNAME_MACHINE based on the output of uname instead of i386?
688         echo i586-pc-interix
689 -       exit 0 ;;
690 +       exit ;;
691      i*:UWIN*:*)
692         echo ${UNAME_MACHINE}-pc-uwin
693 -       exit 0 ;;
694 -    amd64:CYGWIN*:*:*)
695 +       exit ;;
696 +    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
697         echo x86_64-unknown-cygwin
698 -       exit 0 ;;
699 +       exit ;;
700      p*:CYGWIN*:*)
701         echo powerpcle-unknown-cygwin
702 -       exit 0 ;;
703 +       exit ;;
704      prep*:SunOS:5.*:*)
705         echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
706 -       exit 0 ;;
707 +       exit ;;
708      *:GNU:*:*)
709         # the GNU system
710         echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
711 -       exit 0 ;;
712 +       exit ;;
713      *:GNU/*:*:*)
714         # other systems with GNU libc and userland
715         echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
716 -       exit 0 ;;
717 +       exit ;;
718      i*86:Minix:*:*)
719         echo ${UNAME_MACHINE}-pc-minix
720 -       exit 0 ;;
721 +       exit ;;
722      arm*:Linux:*:*)
723 +       eval $set_cc_for_build
724 +       if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
725 +           | grep -q __ARM_EABI__
726 +       then
727 +           echo ${UNAME_MACHINE}-unknown-linux-gnu
728 +       else
729 +           echo ${UNAME_MACHINE}-unknown-linux-gnueabi
730 +       fi
731 +       exit ;;
732 +    avr32*:Linux:*:*)
733         echo ${UNAME_MACHINE}-unknown-linux-gnu
734 -       exit 0 ;;
735 +       exit ;;
736      cris:Linux:*:*)
737         echo cris-axis-linux-gnu
738 -       exit 0 ;;
739 +       exit ;;
740      crisv32:Linux:*:*)
741         echo crisv32-axis-linux-gnu
742 -       exit 0 ;;
743 +       exit ;;
744      frv:Linux:*:*)
745         echo frv-unknown-linux-gnu
746 -       exit 0 ;;
747 +       exit ;;
748      ia64:Linux:*:*)
749         echo ${UNAME_MACHINE}-unknown-linux-gnu
750 -       exit 0 ;;
751 +       exit ;;
752      m32r*:Linux:*:*)
753         echo ${UNAME_MACHINE}-unknown-linux-gnu
754 -       exit 0 ;;
755 +       exit ;;
756      m68*:Linux:*:*)
757         echo ${UNAME_MACHINE}-unknown-linux-gnu
758 -       exit 0 ;;
759 +       exit ;;
760      mips:Linux:*:*)
761         eval $set_cc_for_build
762         sed 's/^        //' << EOF >$dummy.c
763 @@ -861,8 +882,12 @@
764         #endif
765         #endif
766  EOF
767 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
768 -       test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
769 +       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
770 +           /^CPU/{
771 +               s: ::g
772 +               p
773 +           }'`"
774 +       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
775         ;;
776      mips64:Linux:*:*)
777         eval $set_cc_for_build
778 @@ -880,15 +905,22 @@
779         #endif
780         #endif
781  EOF
782 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
783 -       test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
784 +       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
785 +           /^CPU/{
786 +               s: ::g
787 +               p
788 +           }'`"
789 +       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
790         ;;
791 +    or32:Linux:*:*)
792 +       echo or32-unknown-linux-gnu
793 +       exit ;;
794      ppc:Linux:*:*)
795         echo powerpc-unknown-linux-gnu
796 -       exit 0 ;;
797 +       exit ;;
798      ppc64:Linux:*:*)
799         echo powerpc64-unknown-linux-gnu
800 -       exit 0 ;;
801 +       exit ;;
802      alpha:Linux:*:*)
803         case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
804           EV5)   UNAME_MACHINE=alphaev5 ;;
805 @@ -902,7 +934,7 @@
806         objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
807         if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
808         echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
809 -       exit 0 ;;
810 +       exit ;;
811      parisc:Linux:*:* | hppa:Linux:*:*)
812         # Look for CPU level
813         case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
814 @@ -910,25 +942,31 @@
815           PA8*) echo hppa2.0-unknown-linux-gnu ;;
816           *)    echo hppa-unknown-linux-gnu ;;
817         esac
818 -       exit 0 ;;
819 +       exit ;;
820      parisc64:Linux:*:* | hppa64:Linux:*:*)
821         echo hppa64-unknown-linux-gnu
822 -       exit 0 ;;
823 +       exit ;;
824      s390:Linux:*:* | s390x:Linux:*:*)
825         echo ${UNAME_MACHINE}-ibm-linux
826 -       exit 0 ;;
827 +       exit ;;
828      sh64*:Linux:*:*)
829         echo ${UNAME_MACHINE}-unknown-linux-gnu
830 -       exit 0 ;;
831 +       exit ;;
832      sh*:Linux:*:*)
833         echo ${UNAME_MACHINE}-unknown-linux-gnu
834 -       exit 0 ;;
835 +       exit ;;
836      sparc:Linux:*:* | sparc64:Linux:*:*)
837         echo ${UNAME_MACHINE}-unknown-linux-gnu
838 -       exit 0 ;;
839 +       exit ;;
840 +    vax:Linux:*:*)
841 +       echo ${UNAME_MACHINE}-dec-linux-gnu
842 +       exit ;;
843      x86_64:Linux:*:*)
844         echo x86_64-unknown-linux-gnu
845 -       exit 0 ;;
846 +       exit ;;
847 +    xtensa*:Linux:*:*)
848 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
849 +       exit ;;
850      i*86:Linux:*:*)
851         # The BFD linker knows what the default object file format is, so
852         # first see if it will tell us. cd to the root directory to prevent
853 @@ -946,15 +984,15 @@
854                 ;;
855           a.out-i386-linux)
856                 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
857 -               exit 0 ;;
858 +               exit ;;
859           coff-i386)
860                 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
861 -               exit 0 ;;
862 +               exit ;;
863           "")
864                 # Either a pre-BFD a.out linker (linux-gnuoldld) or
865                 # one that does not give us useful --help.
866                 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
867 -               exit 0 ;;
868 +               exit ;;
869         esac
870         # Determine whether the default compiler is a.out or elf
871         eval $set_cc_for_build
872 @@ -971,7 +1009,7 @@
873         LIBC=gnulibc1
874         # endif
875         #else
876 -       #ifdef __INTEL_COMPILER
877 +       #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
878         LIBC=gnu
879         #else
880         LIBC=gnuaout
881 @@ -981,16 +1019,23 @@
882         LIBC=dietlibc
883         #endif
884  EOF
885 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
886 -       test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
887 -       test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
888 +       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
889 +           /^LIBC/{
890 +               s: ::g
891 +               p
892 +           }'`"
893 +       test x"${LIBC}" != x && {
894 +               echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
895 +               exit
896 +       }
897 +       test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
898         ;;
899      i*86:DYNIX/ptx:4*:*)
900         # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
901         # earlier versions are messed up and put the nodename in both
902         # sysname and nodename.
903         echo i386-sequent-sysv4
904 -       exit 0 ;;
905 +       exit ;;
906      i*86:UNIX_SV:4.2MP:2.*)
907          # Unixware is an offshoot of SVR4, but it has its own version
908          # number series starting with 2...
909 @@ -998,27 +1043,27 @@
910         # I just have to hope.  -- rms.
911          # Use sysv4.2uw... so that sysv4* matches it.
912         echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
913 -       exit 0 ;;
914 +       exit ;;
915      i*86:OS/2:*:*)
916         # If we were able to find `uname', then EMX Unix compatibility
917         # is probably installed.
918         echo ${UNAME_MACHINE}-pc-os2-emx
919 -       exit 0 ;;
920 +       exit ;;
921      i*86:XTS-300:*:STOP)
922         echo ${UNAME_MACHINE}-unknown-stop
923 -       exit 0 ;;
924 +       exit ;;
925      i*86:atheos:*:*)
926         echo ${UNAME_MACHINE}-unknown-atheos
927 -       exit 0 ;;
928 -       i*86:syllable:*:*)
929 +       exit ;;
930 +    i*86:syllable:*:*)
931         echo ${UNAME_MACHINE}-pc-syllable
932 -       exit 0 ;;
933 +       exit ;;
934      i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
935         echo i386-unknown-lynxos${UNAME_RELEASE}
936 -       exit 0 ;;
937 +       exit ;;
938      i*86:*DOS:*:*)
939         echo ${UNAME_MACHINE}-pc-msdosdjgpp
940 -       exit 0 ;;
941 +       exit ;;
942      i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
943         UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
944         if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
945 @@ -1026,15 +1071,16 @@
946         else
947                 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
948         fi
949 -       exit 0 ;;
950 -    i*86:*:5:[78]*)
951 +       exit ;;
952 +    i*86:*:5:[678]*)
953 +       # UnixWare 7.x, OpenUNIX and OpenServer 6.
954         case `/bin/uname -X | grep "^Machine"` in
955             *486*)           UNAME_MACHINE=i486 ;;
956             *Pentium)        UNAME_MACHINE=i586 ;;
957             *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
958         esac
959         echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
960 -       exit 0 ;;
961 +       exit ;;
962      i*86:*:3.2:*)
963         if test -f /usr/options/cb.name; then
964                 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
965 @@ -1052,73 +1098,73 @@
966         else
967                 echo ${UNAME_MACHINE}-pc-sysv32
968         fi
969 -       exit 0 ;;
970 +       exit ;;
971      pc:*:*:*)
972         # Left here for compatibility:
973          # uname -m prints for DJGPP always 'pc', but it prints nothing about
974          # the processor, so we play safe by assuming i386.
975         echo i386-pc-msdosdjgpp
976 -        exit 0 ;;
977 +        exit ;;
978      Intel:Mach:3*:*)
979         echo i386-pc-mach3
980 -       exit 0 ;;
981 +       exit ;;
982      paragon:*:*:*)
983         echo i860-intel-osf1
984 -       exit 0 ;;
985 +       exit ;;
986      i860:*:4.*:*) # i860-SVR4
987         if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
988           echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
989         else # Add other i860-SVR4 vendors below as they are discovered.
990           echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
991         fi
992 -       exit 0 ;;
993 +       exit ;;
994      mini*:CTIX:SYS*5:*)
995         # "miniframe"
996         echo m68010-convergent-sysv
997 -       exit 0 ;;
998 +       exit ;;
999      mc68k:UNIX:SYSTEM5:3.51m)
1000         echo m68k-convergent-sysv
1001 -       exit 0 ;;
1002 +       exit ;;
1003      M680?0:D-NIX:5.3:*)
1004         echo m68k-diab-dnix
1005 -       exit 0 ;;
1006 +       exit ;;
1007      M68*:*:R3V[5678]*:*)
1008 -       test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1009 +       test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1010      3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1011         OS_REL=''
1012         test -r /etc/.relid \
1013         && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1014         /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1015 -         && echo i486-ncr-sysv4.3${OS_REL} && exit 0
1016 +         && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1017         /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1018 -         && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
1019 +         && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1020      3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1021          /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1022 -          && echo i486-ncr-sysv4 && exit 0 ;;
1023 +          && { echo i486-ncr-sysv4; exit; } ;;
1024      m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1025         echo m68k-unknown-lynxos${UNAME_RELEASE}
1026 -       exit 0 ;;
1027 +       exit ;;
1028      mc68030:UNIX_System_V:4.*:*)
1029         echo m68k-atari-sysv4
1030 -       exit 0 ;;
1031 +       exit ;;
1032      TSUNAMI:LynxOS:2.*:*)
1033         echo sparc-unknown-lynxos${UNAME_RELEASE}
1034 -       exit 0 ;;
1035 +       exit ;;
1036      rs6000:LynxOS:2.*:*)
1037         echo rs6000-unknown-lynxos${UNAME_RELEASE}
1038 -       exit 0 ;;
1039 +       exit ;;
1040      PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1041         echo powerpc-unknown-lynxos${UNAME_RELEASE}
1042 -       exit 0 ;;
1043 +       exit ;;
1044      SM[BE]S:UNIX_SV:*:*)
1045         echo mips-dde-sysv${UNAME_RELEASE}
1046 -       exit 0 ;;
1047 +       exit ;;
1048      RM*:ReliantUNIX-*:*:*)
1049         echo mips-sni-sysv4
1050 -       exit 0 ;;
1051 +       exit ;;
1052      RM*:SINIX-*:*:*)
1053         echo mips-sni-sysv4
1054 -       exit 0 ;;
1055 +       exit ;;
1056      *:SINIX-*:*:*)
1057         if uname -p 2>/dev/null >/dev/null ; then
1058                 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1059 @@ -1126,73 +1172,81 @@
1060         else
1061                 echo ns32k-sni-sysv
1062         fi
1063 -       exit 0 ;;
1064 +       exit ;;
1065      PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1066                        # says <Richard.M.Bartel@ccMail.Census.GOV>
1067          echo i586-unisys-sysv4
1068 -        exit 0 ;;
1069 +        exit ;;
1070      *:UNIX_System_V:4*:FTX*)
1071         # From Gerald Hewes <hewes@openmarket.com>.
1072         # How about differentiating between stratus architectures? -djm
1073         echo hppa1.1-stratus-sysv4
1074 -       exit 0 ;;
1075 +       exit ;;
1076      *:*:*:FTX*)
1077         # From seanf@swdc.stratus.com.
1078         echo i860-stratus-sysv4
1079 -       exit 0 ;;
1080 +       exit ;;
1081      i*86:VOS:*:*)
1082         # From Paul.Green@stratus.com.
1083         echo ${UNAME_MACHINE}-stratus-vos
1084 -       exit 0 ;;
1085 +       exit ;;
1086      *:VOS:*:*)
1087         # From Paul.Green@stratus.com.
1088         echo hppa1.1-stratus-vos
1089 -       exit 0 ;;
1090 +       exit ;;
1091      mc68*:A/UX:*:*)
1092         echo m68k-apple-aux${UNAME_RELEASE}
1093 -       exit 0 ;;
1094 +       exit ;;
1095      news*:NEWS-OS:6*:*)
1096         echo mips-sony-newsos6
1097 -       exit 0 ;;
1098 +       exit ;;
1099      R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1100         if [ -d /usr/nec ]; then
1101                 echo mips-nec-sysv${UNAME_RELEASE}
1102         else
1103                 echo mips-unknown-sysv${UNAME_RELEASE}
1104         fi
1105 -        exit 0 ;;
1106 +        exit ;;
1107      BeBox:BeOS:*:*)    # BeOS running on hardware made by Be, PPC only.
1108         echo powerpc-be-beos
1109 -       exit 0 ;;
1110 +       exit ;;
1111      BeMac:BeOS:*:*)    # BeOS running on Mac or Mac clone, PPC only.
1112         echo powerpc-apple-beos
1113 -       exit 0 ;;
1114 +       exit ;;
1115      BePC:BeOS:*:*)     # BeOS running on Intel PC compatible.
1116         echo i586-pc-beos
1117 -       exit 0 ;;
1118 +       exit ;;
1119      SX-4:SUPER-UX:*:*)
1120         echo sx4-nec-superux${UNAME_RELEASE}
1121 -       exit 0 ;;
1122 +       exit ;;
1123      SX-5:SUPER-UX:*:*)
1124         echo sx5-nec-superux${UNAME_RELEASE}
1125 -       exit 0 ;;
1126 +       exit ;;
1127      SX-6:SUPER-UX:*:*)
1128         echo sx6-nec-superux${UNAME_RELEASE}
1129 -       exit 0 ;;
1130 +       exit ;;
1131 +    SX-7:SUPER-UX:*:*)
1132 +       echo sx7-nec-superux${UNAME_RELEASE}
1133 +       exit ;;
1134 +    SX-8:SUPER-UX:*:*)
1135 +       echo sx8-nec-superux${UNAME_RELEASE}
1136 +       exit ;;
1137 +    SX-8R:SUPER-UX:*:*)
1138 +       echo sx8r-nec-superux${UNAME_RELEASE}
1139 +       exit ;;
1140      Power*:Rhapsody:*:*)
1141         echo powerpc-apple-rhapsody${UNAME_RELEASE}
1142 -       exit 0 ;;
1143 +       exit ;;
1144      *:Rhapsody:*:*)
1145         echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1146 -       exit 0 ;;
1147 +       exit ;;
1148      *:Darwin:*:*)
1149         UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1150         case $UNAME_PROCESSOR in
1151 -           *86) UNAME_PROCESSOR=i686 ;;
1152             unknown) UNAME_PROCESSOR=powerpc ;;
1153         esac
1154         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1155 -       exit 0 ;;
1156 +       exit ;;
1157      *:procnto*:*:* | *:QNX:[0123456789]*:*)
1158         UNAME_PROCESSOR=`uname -p`
1159         if test "$UNAME_PROCESSOR" = "x86"; then
1160 @@ -1200,25 +1254,25 @@
1161                 UNAME_MACHINE=pc
1162         fi
1163         echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1164 -       exit 0 ;;
1165 +       exit ;;
1166      *:QNX:*:4*)
1167         echo i386-pc-qnx
1168 -       exit 0 ;;
1169 +       exit ;;
1170      NSE-?:NONSTOP_KERNEL:*:*)
1171         echo nse-tandem-nsk${UNAME_RELEASE}
1172 -       exit 0 ;;
1173 +       exit ;;
1174      NSR-?:NONSTOP_KERNEL:*:*)
1175         echo nsr-tandem-nsk${UNAME_RELEASE}
1176 -       exit 0 ;;
1177 +       exit ;;
1178      *:NonStop-UX:*:*)
1179         echo mips-compaq-nonstopux
1180 -       exit 0 ;;
1181 +       exit ;;
1182      BS2000:POSIX*:*:*)
1183         echo bs2000-siemens-sysv
1184 -       exit 0 ;;
1185 +       exit ;;
1186      DS/*:UNIX_System_V:*:*)
1187         echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1188 -       exit 0 ;;
1189 +       exit ;;
1190      *:Plan9:*:*)
1191         # "uname -m" is not consistent, so use $cputype instead. 386
1192         # is converted to i386 for consistency with other x86
1193 @@ -1229,41 +1283,47 @@
1194             UNAME_MACHINE="$cputype"
1195         fi
1196         echo ${UNAME_MACHINE}-unknown-plan9
1197 -       exit 0 ;;
1198 +       exit ;;
1199      *:TOPS-10:*:*)
1200         echo pdp10-unknown-tops10
1201 -       exit 0 ;;
1202 +       exit ;;
1203      *:TENEX:*:*)
1204         echo pdp10-unknown-tenex
1205 -       exit 0 ;;
1206 +       exit ;;
1207      KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1208         echo pdp10-dec-tops20
1209 -       exit 0 ;;
1210 +       exit ;;
1211      XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1212         echo pdp10-xkl-tops20
1213 -       exit 0 ;;
1214 +       exit ;;
1215      *:TOPS-20:*:*)
1216         echo pdp10-unknown-tops20
1217 -       exit 0 ;;
1218 +       exit ;;
1219      *:ITS:*:*)
1220         echo pdp10-unknown-its
1221 -       exit 0 ;;
1222 +       exit ;;
1223      SEI:*:*:SEIUX)
1224          echo mips-sei-seiux${UNAME_RELEASE}
1225 -       exit 0 ;;
1226 +       exit ;;
1227      *:DragonFly:*:*)
1228         echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1229 -       exit 0 ;;
1230 +       exit ;;
1231      *:*VMS:*:*)
1232         UNAME_MACHINE=`(uname -p) 2>/dev/null`
1233         case "${UNAME_MACHINE}" in
1234 -           A*) echo alpha-dec-vms && exit 0 ;;
1235 -           I*) echo ia64-dec-vms && exit 0 ;;
1236 -           V*) echo vax-dec-vms && exit 0 ;;
1237 +           A*) echo alpha-dec-vms ; exit ;;
1238 +           I*) echo ia64-dec-vms ; exit ;;
1239 +           V*) echo vax-dec-vms ; exit ;;
1240         esac ;;
1241      *:XENIX:*:SysV)
1242         echo i386-pc-xenix
1243 -       exit 0 ;;
1244 +       exit ;;
1245 +    i*86:skyos:*:*)
1246 +       echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1247 +       exit ;;
1248 +    i*86:rdos:*:*)
1249 +       echo ${UNAME_MACHINE}-pc-rdos
1250 +       exit ;;
1251  esac
1252  
1253  #echo '(No uname command or uname output not recognized.)' 1>&2
1254 @@ -1295,7 +1355,7 @@
1255  #endif
1256  
1257  #if defined (__arm) && defined (__acorn) && defined (__unix)
1258 -  printf ("arm-acorn-riscix"); exit (0);
1259 +  printf ("arm-acorn-riscix\n"); exit (0);
1260  #endif
1261  
1262  #if defined (hp300) && !defined (hpux)
1263 @@ -1384,11 +1444,12 @@
1264  }
1265  EOF
1266  
1267 -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
1268 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1269 +       { echo "$SYSTEM_NAME"; exit; }
1270  
1271  # Apollos put the system type in the environment.
1272  
1273 -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
1274 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1275  
1276  # Convex versions that predate uname can use getsysinfo(1)
1277  
1278 @@ -1397,22 +1458,22 @@
1279      case `getsysinfo -f cpu_type` in
1280      c1*)
1281         echo c1-convex-bsd
1282 -       exit 0 ;;
1283 +       exit ;;
1284      c2*)
1285         if getsysinfo -f scalar_acc
1286         then echo c32-convex-bsd
1287         else echo c2-convex-bsd
1288         fi
1289 -       exit 0 ;;
1290 +       exit ;;
1291      c34*)
1292         echo c34-convex-bsd
1293 -       exit 0 ;;
1294 +       exit ;;
1295      c38*)
1296         echo c38-convex-bsd
1297 -       exit 0 ;;
1298 +       exit ;;
1299      c4*)
1300         echo c4-convex-bsd
1301 -       exit 0 ;;
1302 +       exit ;;
1303      esac
1304  fi
1305  
1306 @@ -1423,9 +1484,9 @@
1307  the operating system you are using. It is advised that you
1308  download the most up to date version of the config scripts from
1309  
1310 -  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1311 +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1312  and
1313 -  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1314 +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1315  
1316  If the version you run ($0) is already up to date, please
1317  send the following data and any information you think might be
1318 --- hildon-control-panel-2.2.5-1.orig/configure.ac
1319 +++ hildon-control-panel-2.2.5-1/configure.ac
1320 @@ -28,7 +28,7 @@
1321      CFLAGS="$CFLAGS -O2"
1322  fi
1323  
1324 -CFLAGS="$CFLAGS -Wall -ansi -Wmissing-prototypes -Wmissing-declarations -Werror -lcrypt" 
1325 +CFLAGS="$CFLAGS -Wall -ansi -Wmissing-prototypes -Wmissing-declarations -lcrypt" 
1326  AC_SUBST(CFLAGS)
1327  
1328  ALL_LINGUAS="en_GB"
1329 @@ -38,7 +38,7 @@
1330  AC_ARG_ENABLE(maemo-tools,
1331               AS_HELP_STRING([--enable-maemo-tools],[Enable mobile operator, clear and restore user data tools (default=yes)]),
1332               [enable_maemo_tools=$enableval], 
1333 -              [enable_maemo_tools=yes])
1334 +              [enable_maemo_tools=no])
1335  
1336  AM_CONDITIONAL(USE_MAEMO_TOOLS, test "x$enable_maemo_tools" = "xyes")
1337  
1338 @@ -66,7 +66,6 @@
1339         gnome-vfs-2.0 >= 2.8.3
1340         hildon-help
1341         gconf-2.0 >= 2.6.2
1342 -       codelockui >= 1:1.5.6
1343         ])
1344  
1345  hildoncpdesktopentrydir=${datadir}/applications/hildon-control-panel
1346 --- hildon-control-panel-2.2.6/config.sub
1347 +++ hildon-control-panel-2.2.6/config.sub
1348 @@ -1,9 +1,10 @@
1349  #! /bin/sh
1350  # Configuration validation subroutine script.
1351  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1352 -#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
1353 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
1354 +#   Free Software Foundation, Inc.
1355  
1356 -timestamp='2005-04-22'
1357 +timestamp='2008-01-16'
1358  
1359  # This file is (in principle) common to ALL GNU software.
1360  # The presence of a machine in this file suggests that SOME GNU software
1361 @@ -21,14 +22,15 @@
1362  #
1363  # You should have received a copy of the GNU General Public License
1364  # along with this program; if not, write to the Free Software
1365 -# Foundation, Inc., 59 Temple Place - Suite 330,
1366 -# Boston, MA 02111-1307, USA.
1367 -
1368 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
1369 +# 02110-1301, USA.
1370 +#
1371  # As a special exception to the GNU General Public License, if you
1372  # distribute this file as part of a program that contains a
1373  # configuration script generated by Autoconf, you may include it under
1374  # the same distribution terms that you use for the rest of that program.
1375  
1376 +
1377  # Please send patches to <config-patches@gnu.org>.  Submit a context
1378  # diff and a properly formatted ChangeLog entry.
1379  #
1380 @@ -70,8 +72,8 @@
1381  version="\
1382  GNU config.sub ($timestamp)
1383  
1384 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1385 -Free Software Foundation, Inc.
1386 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
1387 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1388  
1389  This is free software; see the source for copying conditions.  There is NO
1390  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
1391 @@ -83,11 +85,11 @@
1392  while test $# -gt 0 ; do
1393    case $1 in
1394      --time-stamp | --time* | -t )
1395 -       echo "$timestamp" ; exit 0 ;;
1396 +       echo "$timestamp" ; exit ;;
1397      --version | -v )
1398 -       echo "$version" ; exit 0 ;;
1399 +       echo "$version" ; exit ;;
1400      --help | --h* | -h )
1401 -       echo "$usage"; exit 0 ;;
1402 +       echo "$usage"; exit ;;
1403      -- )     # Stop option processing
1404         shift; break ;;
1405      - )        # Use stdin as input.
1406 @@ -99,7 +101,7 @@
1407      *local*)
1408         # First pass through any local machine types.
1409         echo $1
1410 -       exit 0;;
1411 +       exit ;;
1412  
1413      * )
1414         break ;;
1415 @@ -118,8 +120,9 @@
1416  # Here we must recognize all the valid KERNEL-OS combinations.
1417  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
1418  case $maybe_os in
1419 -  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
1420 -  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
1421 +  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
1422 +  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
1423 +  storm-chaos* | os2-emx* | rtmk-nova*)
1424      os=-$maybe_os
1425      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
1426      ;;
1427 @@ -170,6 +173,10 @@
1428         -hiux*)
1429                 os=-hiuxwe2
1430                 ;;
1431 +       -sco6)
1432 +               os=-sco5v6
1433 +               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1434 +               ;;
1435         -sco5)
1436                 os=-sco3.2v5
1437                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1438 @@ -186,6 +193,10 @@
1439                 # Don't forget version if it is 3.2v4 or newer.
1440                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1441                 ;;
1442 +       -sco5v6*)
1443 +               # Don't forget version if it is 3.2v4 or newer.
1444 +               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1445 +               ;;
1446         -sco*)
1447                 os=-sco3.2v2
1448                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1449 @@ -230,15 +241,16 @@
1450         | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
1451         | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
1452         | am33_2.0 \
1453 -       | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
1454 +       | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
1455         | bfin \
1456         | c4x | clipper \
1457         | d10v | d30v | dlx | dsp16xx \
1458 -       | fr30 | frv \
1459 +       | fido | fr30 | frv \
1460         | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1461         | i370 | i860 | i960 | ia64 \
1462         | ip2k | iq2000 \
1463 -       | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
1464 +       | m32c | m32r | m32rle | m68000 | m68k | m88k \
1465 +       | maxq | mb | microblaze | mcore | mep \
1466         | mips | mipsbe | mipseb | mipsel | mipsle \
1467         | mips16 \
1468         | mips64 | mips64el \
1469 @@ -247,6 +259,7 @@
1470         | mips64vr4100 | mips64vr4100el \
1471         | mips64vr4300 | mips64vr4300el \
1472         | mips64vr5000 | mips64vr5000el \
1473 +       | mips64vr5900 | mips64vr5900el \
1474         | mipsisa32 | mipsisa32el \
1475         | mipsisa32r2 | mipsisa32r2el \
1476         | mipsisa64 | mipsisa64el \
1477 @@ -255,21 +268,24 @@
1478         | mipsisa64sr71k | mipsisa64sr71kel \
1479         | mipstx39 | mipstx39el \
1480         | mn10200 | mn10300 \
1481 +       | mt \
1482         | msp430 \
1483 +       | nios | nios2 \
1484         | ns16k | ns32k \
1485 -       | openrisc | or32 \
1486 +       | or32 \
1487         | pdp10 | pdp11 | pj | pjl \
1488         | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
1489         | pyramid \
1490 -       | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
1491 +       | score \
1492 +       | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
1493         | sh64 | sh64le \
1494 -       | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
1495 -       | sparcv8 | sparcv9 | sparcv9b \
1496 -       | strongarm \
1497 +       | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
1498 +       | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
1499 +       | spu | strongarm \
1500         | tahoe | thumb | tic4x | tic80 | tron \
1501         | v850 | v850e \
1502         | we32k \
1503 -       | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
1504 +       | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
1505         | z8k)
1506                 basic_machine=$basic_machine-unknown
1507                 ;;
1508 @@ -280,6 +296,9 @@
1509                 ;;
1510         m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
1511                 ;;
1512 +       ms1)
1513 +               basic_machine=mt-unknown
1514 +               ;;
1515  
1516         # We use `pc' rather than `unknown'
1517         # because (1) that's what they normally are, and
1518 @@ -299,18 +318,18 @@
1519         | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
1520         | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
1521         | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
1522 -       | avr-* \
1523 +       | avr-* | avr32-* \
1524         | bfin-* | bs2000-* \
1525         | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
1526         | clipper-* | craynv-* | cydra-* \
1527         | d10v-* | d30v-* | dlx-* \
1528         | elxsi-* \
1529 -       | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
1530 +       | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
1531         | h8300-* | h8500-* \
1532         | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
1533         | i*86-* | i860-* | i960-* | ia64-* \
1534         | ip2k-* | iq2000-* \
1535 -       | m32r-* | m32rle-* \
1536 +       | m32c-* | m32r-* | m32rle-* \
1537         | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
1538         | m88110-* | m88k-* | maxq-* | mcore-* \
1539         | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
1540 @@ -321,6 +340,7 @@
1541         | mips64vr4100-* | mips64vr4100el-* \
1542         | mips64vr4300-* | mips64vr4300el-* \
1543         | mips64vr5000-* | mips64vr5000el-* \
1544 +       | mips64vr5900-* | mips64vr5900el-* \
1545         | mipsisa32-* | mipsisa32el-* \
1546         | mipsisa32r2-* | mipsisa32r2el-* \
1547         | mipsisa64-* | mipsisa64el-* \
1548 @@ -329,28 +349,34 @@
1549         | mipsisa64sr71k-* | mipsisa64sr71kel-* \
1550         | mipstx39-* | mipstx39el-* \
1551         | mmix-* \
1552 +       | mt-* \
1553         | msp430-* \
1554 +       | nios-* | nios2-* \
1555         | none-* | np1-* | ns16k-* | ns32k-* \
1556         | orion-* \
1557         | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
1558         | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
1559         | pyramid-* \
1560         | romp-* | rs6000-* \
1561 -       | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
1562 +       | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
1563         | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
1564 -       | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
1565 +       | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
1566         | sparclite-* \
1567 -       | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
1568 +       | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
1569         | tahoe-* | thumb-* \
1570         | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
1571         | tron-* \
1572         | v850-* | v850e-* | vax-* \
1573         | we32k-* \
1574 -       | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
1575 -       | xstormy16-* | xtensa-* \
1576 +       | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
1577 +       | xstormy16-* | xtensa*-* \
1578         | ymp-* \
1579         | z8k-*)
1580                 ;;
1581 +       # Recognize the basic CPU types without company name, with glob match.
1582 +       xtensa*)
1583 +               basic_machine=$basic_machine-unknown
1584 +               ;;
1585         # Recognize the various machine names and aliases which stand
1586         # for a CPU type and a company and sometimes even an OS.
1587         386bsd)
1588 @@ -421,6 +447,14 @@
1589                 basic_machine=ns32k-sequent
1590                 os=-dynix
1591                 ;;
1592 +       blackfin)
1593 +               basic_machine=bfin-unknown
1594 +               os=-linux
1595 +               ;;
1596 +       blackfin-*)
1597 +               basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
1598 +               os=-linux
1599 +               ;;
1600         c90)
1601                 basic_machine=c90-cray
1602                 os=-unicos
1603 @@ -453,8 +487,8 @@
1604                 basic_machine=craynv-cray
1605                 os=-unicosmp
1606                 ;;
1607 -       cr16c)
1608 -               basic_machine=cr16c-unknown
1609 +       cr16)
1610 +               basic_machine=cr16-unknown
1611                 os=-elf
1612                 ;;
1613         crds | unos)
1614 @@ -646,6 +680,14 @@
1615                 basic_machine=m68k-isi
1616                 os=-sysv
1617                 ;;
1618 +       m68knommu)
1619 +               basic_machine=m68k-unknown
1620 +               os=-linux
1621 +               ;;
1622 +       m68knommu-*)
1623 +               basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
1624 +               os=-linux
1625 +               ;;
1626         m88k-omron*)
1627                 basic_machine=m88k-omron
1628                 ;;
1629 @@ -661,6 +703,10 @@
1630                 basic_machine=i386-pc
1631                 os=-mingw32
1632                 ;;
1633 +       mingw32ce)
1634 +               basic_machine=arm-unknown
1635 +               os=-mingw32ce
1636 +               ;;
1637         miniframe)
1638                 basic_machine=m68000-convergent
1639                 ;;
1640 @@ -686,6 +732,9 @@
1641                 basic_machine=i386-pc
1642                 os=-msdos
1643                 ;;
1644 +       ms1-*)
1645 +               basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
1646 +               ;;
1647         mvs)
1648                 basic_machine=i370-ibm
1649                 os=-mvs
1650 @@ -761,9 +810,8 @@
1651                 basic_machine=hppa1.1-oki
1652                 os=-proelf
1653                 ;;
1654 -       or32 | or32-*)
1655 +       openrisc | openrisc-*)
1656                 basic_machine=or32-unknown
1657 -               os=-coff
1658                 ;;
1659         os400)
1660                 basic_machine=powerpc-ibm
1661 @@ -785,6 +833,14 @@
1662                 basic_machine=i860-intel
1663                 os=-osf
1664                 ;;
1665 +       parisc)
1666 +               basic_machine=hppa-unknown
1667 +               os=-linux
1668 +               ;;
1669 +       parisc-*)
1670 +               basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
1671 +               os=-linux
1672 +               ;;
1673         pbd)
1674                 basic_machine=sparc-tti
1675                 ;;
1676 @@ -794,6 +850,12 @@
1677         pc532 | pc532-*)
1678                 basic_machine=ns32k-pc532
1679                 ;;
1680 +       pc98)
1681 +               basic_machine=i386-pc
1682 +               ;;
1683 +       pc98-*)
1684 +               basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
1685 +               ;;
1686         pentium | p5 | k5 | k6 | nexgen | viac3)
1687                 basic_machine=i586-pc
1688                 ;;
1689 @@ -850,6 +912,10 @@
1690                 basic_machine=i586-unknown
1691                 os=-pw32
1692                 ;;
1693 +       rdos)
1694 +               basic_machine=i386-pc
1695 +               os=-rdos
1696 +               ;;
1697         rom68k)
1698                 basic_machine=m68k-rom68k
1699                 os=-coff
1700 @@ -876,6 +942,10 @@
1701         sb1el)
1702                 basic_machine=mipsisa64sb1el-unknown
1703                 ;;
1704 +       sde)
1705 +               basic_machine=mipsisa32-sde
1706 +               os=-elf
1707 +               ;;
1708         sei)
1709                 basic_machine=mips-sei
1710                 os=-seiux
1711 @@ -887,6 +957,9 @@
1712                 basic_machine=sh-hitachi
1713                 os=-hms
1714                 ;;
1715 +       sh5el)
1716 +               basic_machine=sh5le-unknown
1717 +               ;;
1718         sh64)
1719                 basic_machine=sh64-unknown
1720                 ;;
1721 @@ -976,6 +1049,10 @@
1722                 basic_machine=tic6x-unknown
1723                 os=-coff
1724                 ;;
1725 +       tile*)
1726 +               basic_machine=tile-unknown
1727 +               os=-linux-gnu
1728 +               ;;
1729         tx39)
1730                 basic_machine=mipstx39-unknown
1731                 ;;
1732 @@ -1089,13 +1166,10 @@
1733         we32k)
1734                 basic_machine=we32k-att
1735                 ;;
1736 -       sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
1737 +       sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1738                 basic_machine=sh-unknown
1739                 ;;
1740 -       sh64)
1741 -               basic_machine=sh64-unknown
1742 -               ;;
1743 -       sparc | sparcv8 | sparcv9 | sparcv9b)
1744 +       sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1745                 basic_machine=sparc-sun
1746                 ;;
1747         cydra)
1748 @@ -1168,20 +1242,23 @@
1749               | -aos* \
1750               | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1751               | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1752 -             | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
1753 +             | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1754 +             | -openbsd* | -solidbsd* \
1755               | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1756               | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1757               | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1758               | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1759               | -chorusos* | -chorusrdb* \
1760               | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1761 -             | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1762 +             | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1763 +             | -uxpv* | -beos* | -mpeix* | -udk* \
1764               | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1765               | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1766               | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1767               | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1768               | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1769 -             | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1770 +             | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1771 +             | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1772         # Remember, each alternative MUST END IN *, to match a version number.
1773                 ;;
1774         -qnx*)
1775 @@ -1199,7 +1276,7 @@
1776                 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1777                 ;;
1778         -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1779 -             | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1780 +             | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1781               | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1782                 ;;
1783         -mac*)
1784 @@ -1333,6 +1410,12 @@
1785  # system, and we'll never get to this point.
1786  
1787  case $basic_machine in
1788 +        score-*)
1789 +               os=-elf
1790 +               ;;
1791 +        spu-*)
1792 +               os=-elf
1793 +               ;;
1794         *-acorn)
1795                 os=-riscix1.2
1796                 ;;
1797 @@ -1342,9 +1425,9 @@
1798         arm*-semi)
1799                 os=-aout
1800                 ;;
1801 -    c4x-* | tic4x-*)
1802 -        os=-coff
1803 -        ;;
1804 +        c4x-* | tic4x-*)
1805 +               os=-coff
1806 +               ;;
1807         # This must come before the *-dec entry.
1808         pdp10-*)
1809                 os=-tops20
1810 @@ -1370,6 +1453,9 @@
1811         m68*-cisco)
1812                 os=-aout
1813                 ;;
1814 +        mep-*)
1815 +               os=-elf
1816 +               ;;
1817         mips*-cisco)
1818                 os=-elf
1819                 ;;
1820 @@ -1388,6 +1474,9 @@
1821         *-be)
1822                 os=-beos
1823                 ;;
1824 +       *-haiku)
1825 +               os=-haiku
1826 +               ;;
1827         *-ibm)
1828                 os=-aix
1829                 ;;
1830 @@ -1559,7 +1648,7 @@
1831  esac
1832  
1833  echo $basic_machine$os
1834 -exit 0
1835 +exit
1836  
1837  # Local variables:
1838  # eval: (add-hook 'write-file-hooks 'time-stamp)
1839