* scripts/config.guess: Changes for ARM/Linux.
	* scripts/config.sub: Likewise.
This commit is contained in:
Ulrich Drepper 1999-01-25 18:16:36 +00:00
parent aaff4ba9a6
commit 0dbd556796
3 changed files with 23 additions and 12 deletions

View File

@ -1,5 +1,8 @@
1999-01-25 Ulrich Drepper <drepper@cygnus.com> 1999-01-25 Ulrich Drepper <drepper@cygnus.com>
* scripts/config.guess: Changes for ARM/Linux.
* scripts/config.sub: Likewise.
* elf/Makefile: Define libdl variable as name of libdl library and * elf/Makefile: Define libdl variable as name of libdl library and
use it in all dependencies. use it in all dependencies.

19
scripts/config.guess vendored
View File

@ -374,21 +374,21 @@ EOF
sed 's/^ //' << EOF >$dummy.c sed 's/^ //' << EOF >$dummy.c
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
int main () int main ()
{ {
#if defined(_SC_KERNEL_BITS) #if defined(_SC_KERNEL_BITS)
long bits = sysconf(_SC_KERNEL_BITS); long bits = sysconf(_SC_KERNEL_BITS);
#endif #endif
long cpu = sysconf (_SC_CPU_VERSION); long cpu = sysconf (_SC_CPU_VERSION);
switch (cpu) switch (cpu)
{ {
case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
case CPU_PA_RISC2_0: case CPU_PA_RISC2_0:
#if defined(_SC_KERNEL_BITS) #if defined(_SC_KERNEL_BITS)
switch (bits) switch (bits)
{ {
case 64: puts ("hppa2.0w"); break; case 64: puts ("hppa2.0w"); break;
case 32: puts ("hppa2.0n"); break; case 32: puts ("hppa2.0n"); break;
@ -396,7 +396,7 @@ EOF
} break; } break;
#else /* !defined(_SC_KERNEL_BITS) */ #else /* !defined(_SC_KERNEL_BITS) */
puts ("hppa2.0"); break; puts ("hppa2.0"); break;
#endif #endif
default: puts ("hppa1.0"); break; default: puts ("hppa1.0"); break;
} }
exit (0); exit (0);
@ -549,6 +549,7 @@ EOF
# uname on the ARM produces all sorts of strangeness, and we need to # uname on the ARM produces all sorts of strangeness, and we need to
# filter it out. # filter it out.
case "$UNAME_MACHINE" in case "$UNAME_MACHINE" in
armv*) ;;
arm* | sa110*) UNAME_MACHINE="arm" ;; arm* | sa110*) UNAME_MACHINE="arm" ;;
esac esac
@ -608,14 +609,14 @@ EOF
16) 16)
UNAME_MACHINE="alphaev6" UNAME_MACHINE="alphaev6"
;; ;;
esac esac
objdump --private-headers $dummy | \ objdump --private-headers $dummy | \
grep ld.so.1 > /dev/null grep ld.so.1 > /dev/null
if test "$?" = 0 ; then if test "$?" = 0 ; then
LIBC="libc1" LIBC="libc1"
fi fi
fi fi
rm -f $dummy.s $dummy rm -f $dummy.s $dummy
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
elif test "${UNAME_MACHINE}" = "mips" ; then elif test "${UNAME_MACHINE}" = "mips" ; then

13
scripts/config.sub vendored
View File

@ -155,7 +155,7 @@ case $basic_machine in
| alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \ | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
| i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \ | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
| mips64 | mipsel | mips64el | mips64orion | mips64orionel \ | mips64 | mipsel | mips64el | mips64orion | mips64orionel \
| mipstx39 | mipstx39el \ | mipstx39 | mipstx39el | armv[34][lb] \
| sparc | sparclet | sparclite | sparc64 | v850) | sparc | sparclet | sparclite | sparc64 | v850)
basic_machine=$basic_machine-unknown basic_machine=$basic_machine-unknown
;; ;;
@ -179,10 +179,10 @@ case $basic_machine in
| alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \ | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
| ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \ | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
| sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
| sparc64-* | mips64-* | mipsel-* \ | sparc64-* | mips64-* | mipsel-* | armv[34][lb]-* \
| mips64el-* | mips64orion-* | mips64orionel-* \ | mips64el-* | mips64orion-* | mips64orionel-* \
| mipstx39-* | mipstx39el-* \ | mipstx39-* | mipstx39el-* \
| f301-*) | f301-* | armv*-*)
;; ;;
# Recognize the various machine names and aliases which stand # Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS. # for a CPU type and a company and sometimes even an OS.
@ -412,6 +412,10 @@ case $basic_machine in
basic_machine=i486-ncr basic_machine=i486-ncr
os=-sysv4 os=-sysv4
;; ;;
netwinder)
basic_machine=armv4l-corel
os=-linux
;;
news | news700 | news800 | news900) news | news700 | news800 | news900)
basic_machine=m68k-sony basic_machine=m68k-sony
os=-newsos os=-newsos
@ -801,6 +805,9 @@ case $basic_machine in
*-acorn) *-acorn)
os=-riscix1.2 os=-riscix1.2
;; ;;
arm*-corel)
os=-linux
;;
arm*-semi) arm*-semi)
os=-aout os=-aout
;; ;;