* config.guess: Fix typo. Avoid #elif (not in K&R 1).

Recognize SunOS 5.* only (and not [6-9].*) as being Solaris2.
This commit is contained in:
Per Bothner 1993-05-26 06:06:37 +00:00
parent e9f687d59b
commit 5c49a353df
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Tue May 25 23:03:11 1993 Per Bothner (bothner@cygnus.com)
* config.guess: Fix typo. Avoid #elif (not in K&R 1).
Recognize SunOS 5.* only (and not [6-9].*) as being Solaris2.
Tue May 25 12:44:18 1993 Ian Lance Taylor (ian@cygnus.com) Tue May 25 12:44:18 1993 Ian Lance Taylor (ian@cygnus.com)
* build-all.mk (all-cross): New target for Canadian Cross. * build-all.mk (all-cross): New target for Canadian Cross.

9
config.guess vendored
View file

@ -17,7 +17,7 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
# #
# This script attempts to guess a cononical system name similar to # This script attempts to guess a canonical system name similar to
# config.sub. If it succeeds, it prints the system name on stdout, and # config.sub. If it succeeds, it prints the system name on stdout, and
# exits with 0. Otherwise, it prints an error message on stderr, and # exits with 0. Otherwise, it prints an error message on stderr, and
# exits with 1. # exits with 1.
@ -40,8 +40,8 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
alpha:OSF1:1.*:*) alpha:OSF1:1.*:*)
echo alpha-dec-osf${UNAME_RELEASE} echo alpha-dec-osf${UNAME_RELEASE}
exit 0 ;; exit 0 ;;
sun4*:SunOS:[5-9].*:*) sun4*:SunOS:5.*:*)
echo sparc-sun-solaris2 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit 0 ;; exit 0 ;;
sun4*:SunOS:*:*) sun4*:SunOS:*:*)
echo sparc-sun-sunos${UNAME_RELEASE} echo sparc-sun-sunos${UNAME_RELEASE}
@ -160,7 +160,8 @@ main()
#if defined(sequent) #if defined(sequent)
#if defined(i386) #if defined(i386)
printf("i386-sequent-dynix\n"); exit(0); printf("i386-sequent-dynix\n"); exit(0);
#elif defined (ns32000) #endif
#if defined (ns32000)
printf("ns32k-sequent-dynix\n"); exit(0); printf("ns32k-sequent-dynix\n"); exit(0);
#endif #endif
#endif #endif