diff options
| author | Richard M. Stallman | 1997-06-10 02:49:33 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-06-10 02:49:33 +0000 |
| commit | 36e5df1bfd040d816f6905010491e7a96e7b0fea (patch) | |
| tree | de3d8b27ab2cc5383ad26bd7547b146e7e5d0c39 | |
| parent | 49adf44396a6467edfdf0d1024e3524fde5ab204 (diff) | |
| download | emacs-36e5df1bfd040d816f6905010491e7a96e7b0fea.tar.gz emacs-36e5df1bfd040d816f6905010491e7a96e7b0fea.zip | |
Use i?86, not i.86.
Don't test /usr/lib/ldscripts; instead, test whether ld_help_string
does not contain "supported emulations".
Use a case statement to distinguish systems when there IS
"supported emulations".
| -rwxr-xr-x | config.guess | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/config.guess b/config.guess index e4a7284b904..b52d4f0a9fc 100755 --- a/config.guess +++ b/config.guess | |||
| @@ -436,17 +436,21 @@ EOF | |||
| 436 | # The BFD linker knows what the default object file format is, so | 436 | # The BFD linker knows what the default object file format is, so |
| 437 | # first see if it will tell us. | 437 | # first see if it will tell us. |
| 438 | ld_help_string=`ld --help 2>&1` | 438 | ld_help_string=`ld --help 2>&1` |
| 439 | if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86linux"; then | 439 | ld_supported_emulations=`echo $ld_help_string |
| 440 | echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 | 440 | | sed -ne '/supported emulations:/!d |
| 441 | elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86coff"; then | 441 | s/[ ][ ]*/ /g |
| 442 | echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 | 442 | s/.*supported emulations: *// |
| 443 | elif echo $ld_help_string | grep >/dev/null 2>&1 "supported emulations:sparclinux"; then | 443 | s/ .*// |
| 444 | echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 | 444 | p'` |
| 445 | elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68klinux"; then | 445 | case "$ld_supported_emulations" in |
| 446 | echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 | 446 | i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;; |
| 447 | elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf32ppc"; then | 447 | i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; |
| 448 | echo "powerpc-unknown-linux-gnu" ; exit 0 | 448 | sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; |
| 449 | elif test "${UNAME_MACHINE}" = "alpha" ; then | 449 | m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; |
| 450 | elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;; | ||
| 451 | esac | ||
| 452 | |||
| 453 | if test "${UNAME_MACHINE}" = "alpha" ; then | ||
| 450 | echo alpha-unknown-linux-gnu ; exit 0 | 454 | echo alpha-unknown-linux-gnu ; exit 0 |
| 451 | elif test "${UNAME_MACHINE}" = "mips" ; then | 455 | elif test "${UNAME_MACHINE}" = "mips" ; then |
| 452 | cat >dummy.c <<EOF | 456 | cat >dummy.c <<EOF |
| @@ -468,9 +472,12 @@ EOF | |||
| 468 | else | 472 | else |
| 469 | # Either a pre-BFD a.out linker (linux-gnuoldld) | 473 | # Either a pre-BFD a.out linker (linux-gnuoldld) |
| 470 | # or one that does not give us useful --help. | 474 | # or one that does not give us useful --help. |
| 471 | # Gcc wants to distinguish between linux-gnuoldld and linux-gnuaout. | 475 | # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. |
| 472 | test ! -d /usr/lib/ldscripts/. \ | 476 | # If ld does not provide *any* "supported emulations:" |
| 473 | && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 | 477 | # that means it is gnuoldld. |
| 478 | echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:" | ||
| 479 | test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 | ||
| 480 | |||
| 474 | case "${UNAME_MACHINE}" in | 481 | case "${UNAME_MACHINE}" in |
| 475 | i?86) | 482 | i?86) |
| 476 | VENDOR=pc; | 483 | VENDOR=pc; |