diff options
| author | Richard Kenner | 1996-09-15 00:49:22 +0000 |
|---|---|---|
| committer | Richard Kenner | 1996-09-15 00:49:22 +0000 |
| commit | 39110bdb9fd3e600a65e15c06d6a90477bc495ad (patch) | |
| tree | 0a0b95643eb2581b771f27e38cf9ffcc294ae5c4 | |
| parent | 9259d36e9d9d4545adb7144a0a6e59df6882587b (diff) | |
| download | emacs-39110bdb9fd3e600a65e15c06d6a90477bc495ad.tar.gz emacs-39110bdb9fd3e600a65e15c06d6a90477bc495ad.zip | |
RMS:
Use pc instead of unknown, for pc clones.
Use -linux-gnu for Linux-based GNU systems.
| -rwxr-xr-x | config.sub | 64 |
1 files changed, 44 insertions, 20 deletions
diff --git a/config.sub b/config.sub index d86a27ec386..9cd91011625 100755 --- a/config.sub +++ b/config.sub | |||
| @@ -41,6 +41,8 @@ | |||
| 41 | # The goal of this file is to map all the various variations of a given | 41 | # The goal of this file is to map all the various variations of a given |
| 42 | # machine specification into a single specification in the form: | 42 | # machine specification into a single specification in the form: |
| 43 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | 43 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM |
| 44 | # or in some cases, the newer four-part form: | ||
| 45 | # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM | ||
| 44 | # It is wrong to echo any other type of specification. | 46 | # It is wrong to echo any other type of specification. |
| 45 | 47 | ||
| 46 | if [ x$1 = x ] | 48 | if [ x$1 = x ] |
| @@ -62,11 +64,21 @@ case $1 in | |||
| 62 | ;; | 64 | ;; |
| 63 | esac | 65 | esac |
| 64 | 66 | ||
| 65 | # Separate what the user gave into CPU-COMPANY and OS (if any). | 67 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
| 66 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` | 68 | # Here we must recognize all the valid KERNEL-OS combinations. |
| 67 | if [ $basic_machine != $1 ] | 69 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
| 68 | then os=`echo $1 | sed 's/.*-/-/'` | 70 | case $maybe_os in |
| 69 | else os=; fi | 71 | linux-gnu*) |
| 72 | os=-$maybe_os | ||
| 73 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | ||
| 74 | ;; | ||
| 75 | *) | ||
| 76 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` | ||
| 77 | if [ $basic_machine != $1 ] | ||
| 78 | then os=`echo $1 | sed 's/.*-/-/'` | ||
| 79 | else os=; fi | ||
| 80 | ;; | ||
| 81 | esac | ||
| 70 | 82 | ||
| 71 | ### Let's recognize common machines as not being operating systems so | 83 | ### Let's recognize common machines as not being operating systems so |
| 72 | ### that things like config.sub decstation-3100 work. We also | 84 | ### that things like config.sub decstation-3100 work. We also |
| @@ -91,33 +103,33 @@ case $os in | |||
| 91 | ;; | 103 | ;; |
| 92 | -sco5) | 104 | -sco5) |
| 93 | os=sco3.2v5 | 105 | os=sco3.2v5 |
| 94 | basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` | 106 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| 95 | ;; | 107 | ;; |
| 96 | -sco4) | 108 | -sco4) |
| 97 | os=-sco3.2v4 | 109 | os=-sco3.2v4 |
| 98 | basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` | 110 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| 99 | ;; | 111 | ;; |
| 100 | -sco3.2.[4-9]*) | 112 | -sco3.2.[4-9]*) |
| 101 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` | 113 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
| 102 | basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` | 114 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| 103 | ;; | 115 | ;; |
| 104 | -sco3.2v[4-9]*) | 116 | -sco3.2v[4-9]*) |
| 105 | # Don't forget version if it is 3.2v4 or newer. | 117 | # Don't forget version if it is 3.2v4 or newer. |
| 106 | basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` | 118 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| 107 | ;; | 119 | ;; |
| 108 | -sco*) | 120 | -sco*) |
| 109 | os=-sco3.2v2 | 121 | os=-sco3.2v2 |
| 110 | basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` | 122 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| 111 | ;; | 123 | ;; |
| 112 | -isc) | 124 | -isc) |
| 113 | os=-isc2.2 | 125 | os=-isc2.2 |
| 114 | basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` | 126 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| 115 | ;; | 127 | ;; |
| 116 | -clix*) | 128 | -clix*) |
| 117 | basic_machine=clipper-intergraph | 129 | basic_machine=clipper-intergraph |
| 118 | ;; | 130 | ;; |
| 119 | -isc*) | 131 | -isc*) |
| 120 | basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` | 132 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| 121 | ;; | 133 | ;; |
| 122 | -lynx*) | 134 | -lynx*) |
| 123 | os=-lynxos | 135 | os=-lynxos |
| @@ -137,7 +149,7 @@ esac | |||
| 137 | case $basic_machine in | 149 | case $basic_machine in |
| 138 | # Recognize the basic CPU types without company name. | 150 | # Recognize the basic CPU types without company name. |
| 139 | # Some are omitted here because they have special meanings below. | 151 | # Some are omitted here because they have special meanings below. |
| 140 | tahoe | i[3456]86 | i860 | m68k | m68000 | m88k | ns32k | arm \ | 152 | tahoe | i860 | m68k | m68000 | m88k | ns32k | arm \ |
| 141 | | arme[lb] | pyramid \ | 153 | | arme[lb] | pyramid \ |
| 142 | | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \ | 154 | | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \ |
| 143 | | alpha | we32k | ns16k | clipper | i370 | sh \ | 155 | | alpha | we32k | ns16k | clipper | i370 | sh \ |
| @@ -146,6 +158,12 @@ case $basic_machine in | |||
| 146 | | sparc | sparclet | sparclite | sparc64) | 158 | | sparc | sparclet | sparclite | sparc64) |
| 147 | basic_machine=$basic_machine-unknown | 159 | basic_machine=$basic_machine-unknown |
| 148 | ;; | 160 | ;; |
| 161 | # We use `pc' rather than `unknown' | ||
| 162 | # because (1) that's what they normally are, and | ||
| 163 | # (2) the word "unknown" tends to confuse beginning users. | ||
| 164 | i[3456]86) | ||
| 165 | basic_machine=$basic_machine-pc | ||
| 166 | ;; | ||
| 149 | # Object if more than one company name word. | 167 | # Object if more than one company name word. |
| 150 | *-*-*) | 168 | *-*-*) |
| 151 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | 169 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
| @@ -325,19 +343,19 @@ case $basic_machine in | |||
| 325 | ;; | 343 | ;; |
| 326 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? | 344 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
| 327 | i[3456]86v32) | 345 | i[3456]86v32) |
| 328 | basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` | 346 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
| 329 | os=-sysv32 | 347 | os=-sysv32 |
| 330 | ;; | 348 | ;; |
| 331 | i[3456]86v4*) | 349 | i[3456]86v4*) |
| 332 | basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` | 350 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
| 333 | os=-sysv4 | 351 | os=-sysv4 |
| 334 | ;; | 352 | ;; |
| 335 | i[3456]86v) | 353 | i[3456]86v) |
| 336 | basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` | 354 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
| 337 | os=-sysv | 355 | os=-sysv |
| 338 | ;; | 356 | ;; |
| 339 | i[3456]86sol2) | 357 | i[3456]86sol2) |
| 340 | basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` | 358 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
| 341 | os=-solaris2 | 359 | os=-solaris2 |
| 342 | ;; | 360 | ;; |
| 343 | iris | iris4d) | 361 | iris | iris4d) |
| @@ -635,6 +653,8 @@ esac | |||
| 635 | if [ x"$os" != x"" ] | 653 | if [ x"$os" != x"" ] |
| 636 | then | 654 | then |
| 637 | case $os in | 655 | case $os in |
| 656 | # First match some system type aliases | ||
| 657 | # that might get confused with valid system types. | ||
| 638 | # -solaris* is a basic system type, with this one exception. | 658 | # -solaris* is a basic system type, with this one exception. |
| 639 | -solaris1 | -solaris1.*) | 659 | -solaris1 | -solaris1.*) |
| 640 | os=`echo $os | sed -e 's|solaris1|sunos4|'` | 660 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
| @@ -646,7 +666,7 @@ case $os in | |||
| 646 | os=-sysv4 | 666 | os=-sysv4 |
| 647 | ;; | 667 | ;; |
| 648 | -gnu/linux*) | 668 | -gnu/linux*) |
| 649 | os=`echo $os | sed -e 's|gnu/linux|linux|'` | 669 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` |
| 650 | ;; | 670 | ;; |
| 651 | # First accept the basic system types. | 671 | # First accept the basic system types. |
| 652 | # The portable systems comes first. | 672 | # The portable systems comes first. |
| @@ -657,14 +677,18 @@ case $os in | |||
| 657 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | 677 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
| 658 | | -amigados* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \ | 678 | | -amigados* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \ |
| 659 | | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \ | 679 | | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \ |
| 660 | | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \ | 680 | | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
| 661 | | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \ | 681 | | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \ |
| 662 | | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ | 682 | | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ |
| 663 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | 683 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
| 664 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | 684 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| 665 | | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems*) | 685 | | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
| 686 | | -linux-gnu*) | ||
| 666 | # Remember, each alternative MUST END IN *, to match a version number. | 687 | # Remember, each alternative MUST END IN *, to match a version number. |
| 667 | ;; | 688 | ;; |
| 689 | -linux*) | ||
| 690 | os=`echo $os | sed -e 's|linux|linux-gnu|'` | ||
| 691 | ;; | ||
| 668 | -sunos5*) | 692 | -sunos5*) |
| 669 | os=`echo $os | sed -e 's|sunos5|solaris2|'` | 693 | os=`echo $os | sed -e 's|sunos5|solaris2|'` |
| 670 | ;; | 694 | ;; |