comparison config.guess @ 16177:da1a2b74d099 libc-960913

Use pc instead of unknown, for pc clone systems. Change linux to linux-gnu.
author Richard M. Stallman <rms@gnu.org>
date Fri, 13 Sep 1996 03:46:14 +0000
parents 5db02009315e
children 901db650f48e
comparison
equal deleted inserted replaced
16176:f2728b5d7085 16177:da1a2b74d099
79 exit 0 ;; 79 exit 0 ;;
80 sun4*:SunOS:5.*:*) 80 sun4*:SunOS:5.*:*)
81 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 81 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
82 exit 0 ;; 82 exit 0 ;;
83 i86pc:SunOS:5.*:*) 83 i86pc:SunOS:5.*:*)
84 echo i386-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 84 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
85 exit 0 ;; 85 exit 0 ;;
86 sun4*:SunOS:6*:*) 86 sun4*:SunOS:6*:*)
87 # According to config.sub, this is the proper way to canonicalize 87 # According to config.sub, this is the proper way to canonicalize
88 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 88 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
89 # it's likely to be more like Solaris than SunOS4. 89 # it's likely to be more like Solaris than SunOS4.
330 exit 0 ;; 330 exit 0 ;;
331 hp3[0-9][05]:NetBSD:*:*) 331 hp3[0-9][05]:NetBSD:*:*)
332 echo m68k-hp-netbsd${UNAME_RELEASE} 332 echo m68k-hp-netbsd${UNAME_RELEASE}
333 exit 0 ;; 333 exit 0 ;;
334 i[34]86:BSD/386:*:* | *:BSD/OS:*:*) 334 i[34]86:BSD/386:*:* | *:BSD/OS:*:*)
335 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 335 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
336 exit 0 ;; 336 exit 0 ;;
337 *:FreeBSD:*:*) 337 *:FreeBSD:*:*)
338 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 338 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
339 exit 0 ;; 339 exit 0 ;;
340 *:NetBSD:*:*) 340 *:NetBSD:*:*)
341 echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 341 echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
342 exit 0 ;; 342 exit 0 ;;
343 i*:CYGWIN*:*) 343 i*:CYGWIN*:*)
344 echo i386-unknown-cygwin32 344 echo i386-pc-cygwin32
345 exit 0 ;; 345 exit 0 ;;
346 p*:CYGWIN*:*) 346 p*:CYGWIN*:*)
347 echo powerpcle-unknown-cygwin32 347 echo powerpcle-unknown-cygwin32
348 exit 0 ;; 348 exit 0 ;;
349 prep*:SunOS:5.*:*) 349 prep*:SunOS:5.*:*)
355 *:Linux:*:*) 355 *:Linux:*:*)
356 # The BFD linker knows what the default object file format is, so 356 # The BFD linker knows what the default object file format is, so
357 # first see if it will tell us. 357 # first see if it will tell us.
358 ld_help_string=`ld --help 2>&1` 358 ld_help_string=`ld --help 2>&1`
359 if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf_i[345]86"; then 359 if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf_i[345]86"; then
360 echo "${UNAME_MACHINE}-unknown-linux" ; exit 0 360 echo "${UNAME_MACHINE}-pc-linux-gnu" ; exit 0
361 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i[345]86linux"; then 361 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i[345]86linux"; then
362 echo "${UNAME_MACHINE}-unknown-linuxaout" ; exit 0 362 echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0
363 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i[345]86coff"; then 363 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i[345]86coff"; then
364 echo "${UNAME_MACHINE}-unknown-linuxcoff" ; exit 0 364 echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0
365 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68kelf"; then 365 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68kelf"; then
366 echo "${UNAME_MACHINE}-unknown-linux" ; exit 0 366 echo "${UNAME_MACHINE}-unknown-linux-gnu" ; exit 0
367 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68klinux"; then 367 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68klinux"; then
368 echo "${UNAME_MACHINE}-unknown-linuxaout" ; exit 0 368 echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0
369 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf32ppc"; then 369 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf32ppc"; then
370 echo "powerpc-unknown-linux" ; exit 0 370 echo "powerpc-unknown-linux-gnu" ; exit 0
371 elif test "${UNAME_MACHINE}" = "alpha" ; then 371 elif test "${UNAME_MACHINE}" = "alpha" ; then
372 echo alpha-unknown-linux ; exit 0 372 echo alpha-unknown-linux-gnu ; exit 0
373 elif test "${UNAME_MACHINE}" = "sparc" ; then 373 elif test "${UNAME_MACHINE}" = "sparc" ; then
374 echo sparc-unknown-linux ; exit 0 374 echo sparc-unknown-linux-gnu ; exit 0
375 else 375 else
376 # Either a pre-BFD a.out linker (linuxoldld) or one that does not give us 376 # Either a pre-BFD a.out linker (linux-gnuoldld) or one that does not give us
377 # useful --help. Gcc wants to distinguish between linuxoldld and linuxaout. 377 # useful --help. Gcc wants to distinguish between linux-gnuoldld and linux-gnuaout.
378 test ! -d /usr/lib/ldscripts/. \ 378 test ! -d /usr/lib/ldscripts/. \
379 && echo "${UNAME_MACHINE}-unknown-linuxoldld" && exit 0 379 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
380 # Determine whether the default compiler is a.out or elf 380 # Determine whether the default compiler is a.out or elf
381 cat >dummy.c <<EOF 381 cat >dummy.c <<EOF
382 main(argc, argv) 382 main(argc, argv)
383 int argc; 383 int argc;
384 char *argv[]; 384 char *argv[];
385 { 385 {
386 #ifdef __ELF__ 386 #ifdef __ELF__
387 printf ("%s-unknown-linux\n", argv[1]); 387 printf ("%s-pc-linux-gnu\n", argv[1]);
388 #else 388 #else
389 printf ("%s-unknown-linuxaout\n", argv[1]); 389 printf ("%s-pc-linux-gnuaout\n", argv[1]);
390 #endif 390 #endif
391 return 0; 391 return 0;
392 } 392 }
393 EOF 393 EOF
394 ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 394 ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
401 exit 0 ;; 401 exit 0 ;;
402 i[34]86:*:4.*:* | i[34]86:SYSTEM_V:4.*:*) 402 i[34]86:*:4.*:* | i[34]86:SYSTEM_V:4.*:*)
403 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 403 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
404 echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} 404 echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
405 else 405 else
406 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE} 406 echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
407 fi 407 fi
408 exit 0 ;; 408 exit 0 ;;
409 i[34]86:*:3.2:*) 409 i[34]86:*:3.2:*)
410 if test -f /usr/options/cb.name; then 410 if test -f /usr/options/cb.name; then
411 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 411 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
412 echo ${UNAME_MACHINE}-unknown-isc$UNAME_REL 412 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
413 elif /bin/uname -X 2>/dev/null >/dev/null ; then 413 elif /bin/uname -X 2>/dev/null >/dev/null ; then
414 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` 414 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
415 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 415 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
416 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ 416 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
417 && UNAME_MACHINE=i586 417 && UNAME_MACHINE=i586
418 echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL 418 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
419 else 419 else
420 echo ${UNAME_MACHINE}-unknown-sysv32 420 echo ${UNAME_MACHINE}-pc-sysv32
421 fi 421 fi
422 exit 0 ;; 422 exit 0 ;;
423 Intel:Mach:3*:*) 423 Intel:Mach:3*:*)
424 echo i386-unknown-mach3 424 echo i386-pc-mach3
425 exit 0 ;; 425 exit 0 ;;
426 paragon:*:*:*) 426 paragon:*:*:*)
427 echo i860-intel-osf1 427 echo i860-intel-osf1
428 exit 0 ;; 428 exit 0 ;;
429 i860:*:4.*:*) # i860-SVR4 429 i860:*:4.*:*) # i860-SVR4
545 #endif 545 #endif
546 #endif 546 #endif
547 #endif 547 #endif
548 548
549 #if defined (__386BSD__) 549 #if defined (__386BSD__)
550 printf ("i386-unknown-bsd\n"); exit (0); 550 printf ("i386-pc-bsd\n"); exit (0);
551 #endif 551 #endif
552 552
553 #if defined (sequent) 553 #if defined (sequent)
554 #if defined (i386) 554 #if defined (i386)
555 printf ("i386-sequent-dynix\n"); exit (0); 555 printf ("i386-sequent-dynix\n"); exit (0);