aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2002-11-22 11:29:23 +0000
committerJuanma Barranquero2002-11-22 11:29:23 +0000
commit8c95f450964c2202bbd4b2d0ca1e4ad4fc72e810 (patch)
treee23cb71710baec7b7d5ce697e70073a2e885321c
parent1fc628ee03bef3e291b7e1fb9231f00a6baa280a (diff)
downloademacs-8c95f450964c2202bbd4b2d0ca1e4ad4fc72e810.tar.gz
emacs-8c95f450964c2202bbd4b2d0ca1e4ad4fc72e810.zip
Upgrade to current (2002-11-13) version from <ftp://ftp.gnu.org/pub/gnu/config/>.
-rw-r--r--ChangeLog4
-rwxr-xr-xconfig.guess118
-rwxr-xr-xconfig.sub124
3 files changed, 159 insertions, 87 deletions
diff --git a/ChangeLog b/ChangeLog
index 4db4ba56034..c7102f985d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
12002-11-22 Juanma Barranquero <lektu@terra.es>
2
3 * config.guess, config.sub: Updated from master source.
4
12002-11-19 Karl Fogel <kfogel@red-bean.com> 52002-11-19 Karl Fogel <kfogel@red-bean.com>
2 6
3 * autogen.sh: New file. 7 * autogen.sh: New file.
diff --git a/config.guess b/config.guess
index fbad77f14ba..0149c53609b 100755
--- a/config.guess
+++ b/config.guess
@@ -3,7 +3,7 @@
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002 Free Software Foundation, Inc. 4# 2000, 2001, 2002 Free Software Foundation, Inc.
5 5
6timestamp='2002-05-22' 6timestamp='2002-11-13'
7 7
8# This file is free software; you can redistribute it and/or modify it 8# This file is free software; you can redistribute it and/or modify it
9# under the terms of the GNU General Public License as published by 9# under the terms of the GNU General Public License as published by
@@ -88,30 +88,40 @@ if test $# != 0; then
88 exit 1 88 exit 1
89fi 89fi
90 90
91trap 'exit 1' 1 2 15
91 92
92dummy=dummy-$$ 93# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
93trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15 94# compiler to aid in system detection is discouraged as it requires
95# temporary files to be created and, as you can see below, it is a
96# headache to deal with in a portable fashion.
94 97
95# CC_FOR_BUILD -- compiler used by this script.
96# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 98# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
97# use `HOST_CC' if defined, but it is deprecated. 99# use `HOST_CC' if defined, but it is deprecated.
98 100
99set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in 101# This shell variable is my proudest work .. or something. --bje
100 ,,) echo "int dummy(){}" > $dummy.c ; 102
103set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ;
104(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old)
105 || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ;
106dummy=$tmpdir/dummy ;
107files="$dummy.c $dummy.o $dummy.rel $dummy" ;
108trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ;
109case $CC_FOR_BUILD,$HOST_CC,$CC in
110 ,,) echo "int x;" > $dummy.c ;
101 for c in cc gcc c89 c99 ; do 111 for c in cc gcc c89 c99 ; do
102 ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; 112 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
103 if test $? = 0 ; then
104 CC_FOR_BUILD="$c"; break ; 113 CC_FOR_BUILD="$c"; break ;
105 fi ; 114 fi ;
106 done ; 115 done ;
107 rm -f $dummy.c $dummy.o $dummy.rel ; 116 rm -f $files ;
108 if test x"$CC_FOR_BUILD" = x ; then 117 if test x"$CC_FOR_BUILD" = x ; then
109 CC_FOR_BUILD=no_compiler_found ; 118 CC_FOR_BUILD=no_compiler_found ;
110 fi 119 fi
111 ;; 120 ;;
112 ,,*) CC_FOR_BUILD=$CC ;; 121 ,,*) CC_FOR_BUILD=$CC ;;
113 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 122 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
114esac' 123esac ;
124unset files'
115 125
116# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 126# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
117# (ghazi@noc.rutgers.edu 1994-08-24) 127# (ghazi@noc.rutgers.edu 1994-08-24)
@@ -221,6 +231,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
221 # A Tn.n version is a released field test version. 231 # A Tn.n version is a released field test version.
222 # A Xn.n version is an unreleased experimental baselevel. 232 # A Xn.n version is an unreleased experimental baselevel.
223 # 1.2 uses "1.2" for uname -r. 233 # 1.2 uses "1.2" for uname -r.
234 eval $set_cc_for_build
224 cat <<EOF >$dummy.s 235 cat <<EOF >$dummy.s
225 .data 236 .data
226\$Lformat: 237\$Lformat:
@@ -246,10 +257,9 @@ main:
246 jsr \$26,exit 257 jsr \$26,exit
247 .end main 258 .end main
248EOF 259EOF
249 eval $set_cc_for_build 260 $CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null
250 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
251 if test "$?" = 0 ; then 261 if test "$?" = 0 ; then
252 case `./$dummy` in 262 case `$dummy` in
253 0-0) 263 0-0)
254 UNAME_MACHINE="alpha" 264 UNAME_MACHINE="alpha"
255 ;; 265 ;;
@@ -271,9 +281,12 @@ EOF
271 2-1307) 281 2-1307)
272 UNAME_MACHINE="alphaev68" 282 UNAME_MACHINE="alphaev68"
273 ;; 283 ;;
284 3-1307)
285 UNAME_MACHINE="alphaev7"
286 ;;
274 esac 287 esac
275 fi 288 fi
276 rm -f $dummy.s $dummy 289 rm -f $dummy.s $dummy && rmdir $tmpdir
277 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 290 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
278 exit 0 ;; 291 exit 0 ;;
279 Alpha\ *:Windows_NT*:*) 292 Alpha\ *:Windows_NT*:*)
@@ -314,6 +327,10 @@ EOF
314 NILE*:*:*:dcosx) 327 NILE*:*:*:dcosx)
315 echo pyramid-pyramid-svr4 328 echo pyramid-pyramid-svr4
316 exit 0 ;; 329 exit 0 ;;
330 DRS?6000:UNIX_SV:4.2*:7*)
331 case `/usr/bin/uname -p` in
332 sparc) echo sparc-icl-nx7 && exit 0 ;;
333 esac ;;
317 sun4H:SunOS:5.*:*) 334 sun4H:SunOS:5.*:*)
318 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 335 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
319 exit 0 ;; 336 exit 0 ;;
@@ -420,16 +437,19 @@ EOF
420 exit (-1); 437 exit (-1);
421 } 438 }
422EOF 439EOF
423 $CC_FOR_BUILD $dummy.c -o $dummy \ 440 $CC_FOR_BUILD -o $dummy $dummy.c \
424 && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 441 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
425 && rm -f $dummy.c $dummy && exit 0 442 && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
426 rm -f $dummy.c $dummy 443 rm -f $dummy.c $dummy && rmdir $tmpdir
427 echo mips-mips-riscos${UNAME_RELEASE} 444 echo mips-mips-riscos${UNAME_RELEASE}
428 exit 0 ;; 445 exit 0 ;;
429 Motorola:PowerMAX_OS:*:*) 446 Motorola:PowerMAX_OS:*:*)
430 echo powerpc-motorola-powermax 447 echo powerpc-motorola-powermax
431 exit 0 ;; 448 exit 0 ;;
432 Night_Hawk:*:*:PowerMAX_OS) 449 Motorola:*:4.3:PL8-*)
450 echo powerpc-harris-powermax
451 exit 0 ;;
452 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
433 echo powerpc-harris-powermax 453 echo powerpc-harris-powermax
434 exit 0 ;; 454 exit 0 ;;
435 Night_Hawk:Power_UNIX:*:*) 455 Night_Hawk:Power_UNIX:*:*)
@@ -504,8 +524,8 @@ EOF
504 exit(0); 524 exit(0);
505 } 525 }
506EOF 526EOF
507 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 527 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
508 rm -f $dummy.c $dummy 528 rm -f $dummy.c $dummy && rmdir $tmpdir
509 echo rs6000-ibm-aix3.2.5 529 echo rs6000-ibm-aix3.2.5
510 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 530 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
511 echo rs6000-ibm-aix3.2.4 531 echo rs6000-ibm-aix3.2.4
@@ -603,9 +623,9 @@ EOF
603 exit (0); 623 exit (0);
604 } 624 }
605EOF 625EOF
606 (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy` 626 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
607 if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi 627 if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
608 rm -f $dummy.c $dummy 628 rm -f $dummy.c $dummy && rmdir $tmpdir
609 fi ;; 629 fi ;;
610 esac 630 esac
611 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 631 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
@@ -641,8 +661,8 @@ EOF
641 exit (0); 661 exit (0);
642 } 662 }
643EOF 663EOF
644 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 664 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
645 rm -f $dummy.c $dummy 665 rm -f $dummy.c $dummy && rmdir $tmpdir
646 echo unknown-hitachi-hiuxwe2 666 echo unknown-hitachi-hiuxwe2
647 exit 0 ;; 667 exit 0 ;;
648 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 668 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
@@ -725,7 +745,19 @@ EOF
725 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 745 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
726 exit 0 ;; 746 exit 0 ;;
727 *:FreeBSD:*:*) 747 *:FreeBSD:*:*)
728 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 748 # Determine whether the default compiler uses glibc.
749 eval $set_cc_for_build
750 sed 's/^ //' << EOF >$dummy.c
751 #include <features.h>
752 #if __GLIBC__ >= 2
753 LIBC=gnu
754 #else
755 LIBC=
756 #endif
757EOF
758 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
759 rm -f $dummy.c && rmdir $tmpdir
760 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
729 exit 0 ;; 761 exit 0 ;;
730 i*:CYGWIN*:*) 762 i*:CYGWIN*:*)
731 echo ${UNAME_MACHINE}-pc-cygwin 763 echo ${UNAME_MACHINE}-pc-cygwin
@@ -739,6 +771,9 @@ EOF
739 x86:Interix*:3*) 771 x86:Interix*:3*)
740 echo i386-pc-interix3 772 echo i386-pc-interix3
741 exit 0 ;; 773 exit 0 ;;
774 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
775 echo i${UNAME_MACHINE}-pc-mks
776 exit 0 ;;
742 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 777 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
743 # How do we know it's Interix rather than the generic POSIX subsystem? 778 # How do we know it's Interix rather than the generic POSIX subsystem?
744 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 779 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
@@ -786,7 +821,7 @@ EOF
786 #endif 821 #endif
787EOF 822EOF
788 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 823 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
789 rm -f $dummy.c 824 rm -f $dummy.c && rmdir $tmpdir
790 test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0 825 test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
791 ;; 826 ;;
792 ppc:Linux:*:*) 827 ppc:Linux:*:*)
@@ -849,7 +884,7 @@ EOF
849 ;; 884 ;;
850 a.out-i386-linux) 885 a.out-i386-linux)
851 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 886 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
852 exit 0 ;; 887 exit 0 ;;
853 coff-i386) 888 coff-i386)
854 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 889 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
855 exit 0 ;; 890 exit 0 ;;
@@ -882,7 +917,7 @@ EOF
882 #endif 917 #endif
883EOF 918EOF
884 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 919 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
885 rm -f $dummy.c 920 rm -f $dummy.c && rmdir $tmpdir
886 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 921 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
887 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 922 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
888 ;; 923 ;;
@@ -921,13 +956,13 @@ EOF
921 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 956 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
922 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 957 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
923 elif /bin/uname -X 2>/dev/null >/dev/null ; then 958 elif /bin/uname -X 2>/dev/null >/dev/null ; then
924 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` 959 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
925 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 960 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
926 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ 961 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
927 && UNAME_MACHINE=i586 962 && UNAME_MACHINE=i586
928 (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \ 963 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
929 && UNAME_MACHINE=i686 964 && UNAME_MACHINE=i686
930 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \ 965 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
931 && UNAME_MACHINE=i686 966 && UNAME_MACHINE=i686
932 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 967 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
933 else 968 else
@@ -960,6 +995,12 @@ EOF
960 # "miniframe" 995 # "miniframe"
961 echo m68010-convergent-sysv 996 echo m68010-convergent-sysv
962 exit 0 ;; 997 exit 0 ;;
998 mc68k:UNIX:SYSTEM5:3.51m)
999 echo m68k-convergent-sysv
1000 exit 0 ;;
1001 M680?0:D-NIX:5.3:*)
1002 echo m68k-diab-dnix
1003 exit 0 ;;
963 M68*:*:R3V[567]*:*) 1004 M68*:*:R3V[567]*:*)
964 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 1005 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
965 3[34]??:*: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) 1006 3[34]??:*: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)
@@ -1053,6 +1094,9 @@ EOF
1053 SX-5:SUPER-UX:*:*) 1094 SX-5:SUPER-UX:*:*)
1054 echo sx5-nec-superux${UNAME_RELEASE} 1095 echo sx5-nec-superux${UNAME_RELEASE}
1055 exit 0 ;; 1096 exit 0 ;;
1097 SX-6:SUPER-UX:*:*)
1098 echo sx6-nec-superux${UNAME_RELEASE}
1099 exit 0 ;;
1056 Power*:Rhapsody:*:*) 1100 Power*:Rhapsody:*:*)
1057 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1101 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1058 exit 0 ;; 1102 exit 0 ;;
@@ -1073,7 +1117,7 @@ EOF
1073 *:QNX:*:4*) 1117 *:QNX:*:4*)
1074 echo i386-pc-qnx 1118 echo i386-pc-qnx
1075 exit 0 ;; 1119 exit 0 ;;
1076 NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*) 1120 NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
1077 echo nsr-tandem-nsk${UNAME_RELEASE} 1121 echo nsr-tandem-nsk${UNAME_RELEASE}
1078 exit 0 ;; 1122 exit 0 ;;
1079 *:NonStop-UX:*:*) 1123 *:NonStop-UX:*:*)
@@ -1245,8 +1289,8 @@ main ()
1245} 1289}
1246EOF 1290EOF
1247 1291
1248$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0 1292$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
1249rm -f $dummy.c $dummy 1293rm -f $dummy.c $dummy && rmdir $tmpdir
1250 1294
1251# Apollos put the system type in the environment. 1295# Apollos put the system type in the environment.
1252 1296
diff --git a/config.sub b/config.sub
index 85a5fb21e9f..aeb3bd99950 100755
--- a/config.sub
+++ b/config.sub
@@ -3,7 +3,7 @@
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002 Free Software Foundation, Inc. 4# 2000, 2001, 2002 Free Software Foundation, Inc.
5 5
6timestamp='2002-05-22' 6timestamp='2002-11-13'
7 7
8# This file is (in principle) common to ALL GNU software. 8# This file is (in principle) common to ALL GNU software.
9# The presence of a machine in this file suggests that SOME GNU software 9# The presence of a machine in this file suggests that SOME GNU software
@@ -118,7 +118,7 @@ esac
118# Here we must recognize all the valid KERNEL-OS combinations. 118# Here we must recognize all the valid KERNEL-OS combinations.
119maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 119maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120case $maybe_os in 120case $maybe_os in
121 nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*) 121 nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
122 os=-$maybe_os 122 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;; 124 ;;
@@ -229,24 +229,34 @@ case $basic_machine in
229 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 229 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 230 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
231 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 231 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
232 | c4x | clipper \ 232 | clipper \
233 | d10v | d30v | dsp16xx \ 233 | d10v | d30v | dlx | dsp16xx \
234 | fr30 \ 234 | fr30 | frv \
235 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 235 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
236 | i370 | i860 | i960 | ia64 \ 236 | i370 | i860 | i960 | ia64 \
237 | ip2k \
237 | m32r | m68000 | m68k | m88k | mcore \ 238 | m32r | m68000 | m68k | m88k | mcore \
238 | mips | mips16 | mips64 | mips64el | mips64orion | mips64orionel \ 239 | mips | mipsbe | mipseb | mipsel | mipsle \
239 | mips64vr4100 | mips64vr4100el | mips64vr4300 \ 240 | mips16 \
240 | mips64vr4300el | mips64vr5000 | mips64vr5000el \ 241 | mips64 | mips64el \
241 | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \ 242 | mips64vr | mips64vrel \
242 | mipsisa32 | mipsisa64 \ 243 | mips64orion | mips64orionel \
244 | mips64vr4100 | mips64vr4100el \
245 | mips64vr4300 | mips64vr4300el \
246 | mips64vr5000 | mips64vr5000el \
247 | mipsisa32 | mipsisa32el \
248 | mipsisa64 | mipsisa64el \
249 | mipsisa64sb1 | mipsisa64sb1el \
250 | mipsisa64sr71k | mipsisa64sr71kel \
251 | mipstx39 | mipstx39el \
243 | mn10200 | mn10300 \ 252 | mn10200 | mn10300 \
244 | ns16k | ns32k \ 253 | ns16k | ns32k \
245 | openrisc | or32 \ 254 | openrisc | or32 \
246 | pdp10 | pdp11 | pj | pjl \ 255 | pdp10 | pdp11 | pj | pjl \
247 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 256 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
248 | pyramid \ 257 | pyramid \
249 | sh | sh[34] | sh[34]eb | shbe | shle | sh64 \ 258 | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
259 | sh64 | sh64le \
250 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ 260 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
251 | strongarm \ 261 | strongarm \
252 | tahoe | thumb | tic80 | tron \ 262 | tahoe | thumb | tic80 | tron \
@@ -284,31 +294,42 @@ case $basic_machine in
284 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 294 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
285 | avr-* \ 295 | avr-* \
286 | bs2000-* \ 296 | bs2000-* \
287 | c[123]* | c30-* | [cjt]90-* | c54x-* \ 297 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \
288 | clipper-* | cydra-* \ 298 | clipper-* | cydra-* \
289 | d10v-* | d30v-* \ 299 | d10v-* | d30v-* | dlx-* \
290 | elxsi-* \ 300 | elxsi-* \
291 | f30[01]-* | f700-* | fr30-* | fx80-* \ 301 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
292 | h8300-* | h8500-* \ 302 | h8300-* | h8500-* \
293 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 303 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
294 | i*86-* | i860-* | i960-* | ia64-* \ 304 | i*86-* | i860-* | i960-* | ia64-* \
305 | ip2k-* \
295 | m32r-* \ 306 | m32r-* \
296 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 307 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
297 | m88110-* | m88k-* | mcore-* \ 308 | m88110-* | m88k-* | mcore-* \
298 | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \ 309 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
299 | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \ 310 | mips16-* \
300 | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \ 311 | mips64-* | mips64el-* \
301 | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \ 312 | mips64vr-* | mips64vrel-* \
313 | mips64orion-* | mips64orionel-* \
314 | mips64vr4100-* | mips64vr4100el-* \
315 | mips64vr4300-* | mips64vr4300el-* \
316 | mips64vr5000-* | mips64vr5000el-* \
317 | mipsisa32-* | mipsisa32el-* \
318 | mipsisa64-* | mipsisa64el-* \
319 | mipsisa64sb1-* | mipsisa64sb1el-* \
320 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
321 | mipstx39 | mipstx39el \
302 | none-* | np1-* | ns16k-* | ns32k-* \ 322 | none-* | np1-* | ns16k-* | ns32k-* \
303 | orion-* \ 323 | orion-* \
304 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 324 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
305 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 325 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
306 | pyramid-* \ 326 | pyramid-* \
307 | romp-* | rs6000-* \ 327 | romp-* | rs6000-* \
308 | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* | sh64-* \ 328 | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \
329 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
309 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 330 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
310 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 331 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
311 | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \ 332 | tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \
312 | v850-* | v850e-* | vax-* \ 333 | v850-* | v850e-* | vax-* \
313 | we32k-* \ 334 | we32k-* \
314 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ 335 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
@@ -728,13 +749,13 @@ case $basic_machine in
728 pbb) 749 pbb)
729 basic_machine=m68k-tti 750 basic_machine=m68k-tti
730 ;; 751 ;;
731 pc532 | pc532-*) 752 pc532 | pc532-*)
732 basic_machine=ns32k-pc532 753 basic_machine=ns32k-pc532
733 ;; 754 ;;
734 pentium | p5 | k5 | k6 | nexgen | viac3) 755 pentium | p5 | k5 | k6 | nexgen | viac3)
735 basic_machine=i586-pc 756 basic_machine=i586-pc
736 ;; 757 ;;
737 pentiumpro | p6 | 6x86 | athlon) 758 pentiumpro | p6 | 6x86 | athlon | athlon_*)
738 basic_machine=i686-pc 759 basic_machine=i686-pc
739 ;; 760 ;;
740 pentiumii | pentium2) 761 pentiumii | pentium2)
@@ -755,22 +776,22 @@ case $basic_machine in
755 power) basic_machine=power-ibm 776 power) basic_machine=power-ibm
756 ;; 777 ;;
757 ppc) basic_machine=powerpc-unknown 778 ppc) basic_machine=powerpc-unknown
758 ;; 779 ;;
759 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 780 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
760 ;; 781 ;;
761 ppcle | powerpclittle | ppc-le | powerpc-little) 782 ppcle | powerpclittle | ppc-le | powerpc-little)
762 basic_machine=powerpcle-unknown 783 basic_machine=powerpcle-unknown
763 ;; 784 ;;
764 ppcle-* | powerpclittle-*) 785 ppcle-* | powerpclittle-*)
765 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 786 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
766 ;; 787 ;;
767 ppc64) basic_machine=powerpc64-unknown 788 ppc64) basic_machine=powerpc64-unknown
768 ;; 789 ;;
769 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 790 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
770 ;; 791 ;;
771 ppc64le | powerpc64little | ppc64-le | powerpc64-little) 792 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
772 basic_machine=powerpc64le-unknown 793 basic_machine=powerpc64le-unknown
773 ;; 794 ;;
774 ppc64le-* | powerpc64little-*) 795 ppc64le-* | powerpc64little-*)
775 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 796 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
776 ;; 797 ;;
@@ -801,6 +822,12 @@ case $basic_machine in
801 basic_machine=a29k-amd 822 basic_machine=a29k-amd
802 os=-udi 823 os=-udi
803 ;; 824 ;;
825 sb1)
826 basic_machine=mipsisa64sb1-unknown
827 ;;
828 sb1el)
829 basic_machine=mipsisa64sb1el-unknown
830 ;;
804 sequent) 831 sequent)
805 basic_machine=i386-sequent 832 basic_machine=i386-sequent
806 ;; 833 ;;
@@ -866,7 +893,7 @@ case $basic_machine in
866 sun386 | sun386i | roadrunner) 893 sun386 | sun386i | roadrunner)
867 basic_machine=i386-sun 894 basic_machine=i386-sun
868 ;; 895 ;;
869 sv1) 896 sv1)
870 basic_machine=sv1-cray 897 basic_machine=sv1-cray
871 os=-unicos 898 os=-unicos
872 ;; 899 ;;
@@ -886,6 +913,10 @@ case $basic_machine in
886 basic_machine=t90-cray 913 basic_machine=t90-cray
887 os=-unicos 914 os=-unicos
888 ;; 915 ;;
916 tic4x | c4x*)
917 basic_machine=tic4x-unknown
918 os=-coff
919 ;;
889 tic54x | c54x*) 920 tic54x | c54x*)
890 basic_machine=tic54x-unknown 921 basic_machine=tic54x-unknown
891 os=-coff 922 os=-coff
@@ -924,8 +955,8 @@ case $basic_machine in
924 os=-vms 955 os=-vms
925 ;; 956 ;;
926 vpp*|vx|vx-*) 957 vpp*|vx|vx-*)
927 basic_machine=f301-fujitsu 958 basic_machine=f301-fujitsu
928 ;; 959 ;;
929 vxworks960) 960 vxworks960)
930 basic_machine=i960-wrs 961 basic_machine=i960-wrs
931 os=-vxworks 962 os=-vxworks
@@ -946,11 +977,7 @@ case $basic_machine in
946 basic_machine=hppa1.1-winbond 977 basic_machine=hppa1.1-winbond
947 os=-proelf 978 os=-proelf
948 ;; 979 ;;
949 windows32) 980 xps | xps100)
950 basic_machine=i386-pc
951 os=-windows32-msvcrt
952 ;;
953 xps | xps100)
954 basic_machine=xps100-honeywell 981 basic_machine=xps100-honeywell
955 ;; 982 ;;
956 ymp) 983 ymp)
@@ -996,7 +1023,7 @@ case $basic_machine in
996 we32k) 1023 we32k)
997 basic_machine=we32k-att 1024 basic_machine=we32k-att
998 ;; 1025 ;;
999 sh3 | sh4 | sh3eb | sh4eb) 1026 sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele)
1000 basic_machine=sh-unknown 1027 basic_machine=sh-unknown
1001 ;; 1028 ;;
1002 sh64) 1029 sh64)
@@ -1005,7 +1032,7 @@ case $basic_machine in
1005 sparc | sparcv9 | sparcv9b) 1032 sparc | sparcv9 | sparcv9b)
1006 basic_machine=sparc-sun 1033 basic_machine=sparc-sun
1007 ;; 1034 ;;
1008 cydra) 1035 cydra)
1009 basic_machine=cydra-cydrome 1036 basic_machine=cydra-cydrome
1010 ;; 1037 ;;
1011 orion) 1038 orion)
@@ -1020,10 +1047,6 @@ case $basic_machine in
1020 pmac | pmac-mpw) 1047 pmac | pmac-mpw)
1021 basic_machine=powerpc-apple 1048 basic_machine=powerpc-apple
1022 ;; 1049 ;;
1023 c4x*)
1024 basic_machine=c4x-none
1025 os=-coff
1026 ;;
1027 *-unknown) 1050 *-unknown)
1028 # Make sure to match an already-canonicalized machine name. 1051 # Make sure to match an already-canonicalized machine name.
1029 ;; 1052 ;;
@@ -1086,11 +1109,12 @@ case $os in
1086 | -chorusos* | -chorusrdb* \ 1109 | -chorusos* | -chorusrdb* \
1087 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1110 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1088 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 1111 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1089 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ 1112 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1090 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1113 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1091 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1114 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1092 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1115 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1093 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*) 1116 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1117 | -powermax* | -dnix*)
1094 # Remember, each alternative MUST END IN *, to match a version number. 1118 # Remember, each alternative MUST END IN *, to match a version number.
1095 ;; 1119 ;;
1096 -qnx*) 1120 -qnx*)
@@ -1155,7 +1179,7 @@ case $os in
1155 os=-rtmk-nova 1179 os=-rtmk-nova
1156 ;; 1180 ;;
1157 -ns2 ) 1181 -ns2 )
1158 os=-nextstep2 1182 os=-nextstep2
1159 ;; 1183 ;;
1160 -nsk*) 1184 -nsk*)
1161 os=-nsk 1185 os=-nsk
@@ -1194,8 +1218,8 @@ case $os in
1194 -xenix) 1218 -xenix)
1195 os=-xenix 1219 os=-xenix
1196 ;; 1220 ;;
1197 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1221 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1198 os=-mint 1222 os=-mint
1199 ;; 1223 ;;
1200 -none) 1224 -none)
1201 ;; 1225 ;;
@@ -1232,7 +1256,7 @@ case $basic_machine in
1232 pdp10-*) 1256 pdp10-*)
1233 os=-tops20 1257 os=-tops20
1234 ;; 1258 ;;
1235 pdp11-*) 1259 pdp11-*)
1236 os=-none 1260 os=-none
1237 ;; 1261 ;;
1238 *-dec | vax-*) 1262 *-dec | vax-*)
@@ -1325,19 +1349,19 @@ case $basic_machine in
1325 *-next) 1349 *-next)
1326 os=-nextstep3 1350 os=-nextstep3
1327 ;; 1351 ;;
1328 *-gould) 1352 *-gould)
1329 os=-sysv 1353 os=-sysv
1330 ;; 1354 ;;
1331 *-highlevel) 1355 *-highlevel)
1332 os=-bsd 1356 os=-bsd
1333 ;; 1357 ;;
1334 *-encore) 1358 *-encore)
1335 os=-bsd 1359 os=-bsd
1336 ;; 1360 ;;
1337 *-sgi) 1361 *-sgi)
1338 os=-irix 1362 os=-irix
1339 ;; 1363 ;;
1340 *-siemens) 1364 *-siemens)
1341 os=-sysv4 1365 os=-sysv4
1342 ;; 1366 ;;
1343 *-masscomp) 1367 *-masscomp)