annotate config.guess @ 8236:444501972687

(dired-byte-compile): Use byte-compile-dest-file to get the output file name.
author Richard M. Stallman <rms@gnu.org>
date Wed, 13 Jul 1994 05:10:06 +0000
parents 62c03085c0d9
children 60904bb9d0d8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2907
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
1 #!/bin/sh
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
2 # This script attempts to guess a canonical system name.
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
3 # Copyright (C) 1992, 1993 Free Software Foundation, Inc.
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
4 #
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
5 # This file is free software; you can redistribute it and/or modify it
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
6 # under the terms of the GNU General Public License as published by
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
7 # the Free Software Foundation; either version 2 of the License, or
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
8 # (at your option) any later version.
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
9 #
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
10 # This program is distributed in the hope that it will be useful, but
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
13 # General Public License for more details.
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
14 #
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
16 # along with this program; if not, write to the Free Software
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
18
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
19 #
3622
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
20 # This script attempts to guess a canonical system name similar to
2907
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
21 # config.sub. If it succeeds, it prints the system name on stdout, and
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
22 # exits with 0. Otherwise, it prints an error message on stderr, and
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
23 # exits with 1.
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
24 #
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
25 # The plan is that this can be called by configure scripts if you
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
26 # don't specify an explicit system type (host/target name).
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
27 #
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
28 # Only a few systems have been added to this list; please add others
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
29 # (but try to keep the structure clean).
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
30 #
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
31
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
32 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
33 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
34 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
35 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
36
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
37 # Note: order is significant - the case branches are not exclusive.
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
38
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
39 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
40 alpha:OSF1:1.*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
41 echo alpha-dec-osf${UNAME_RELEASE}
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
42 exit 0 ;;
3622
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
43 sun4*:SunOS:5.*:*)
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
44 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
45 exit 0 ;;
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
46 sun4*:SunOS:6*:*)
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
47 # According to config.sub, this is the proper way to canonicalize
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
48 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
49 # it's likely to be more like Solaris than SunOS4.
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
50 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2907
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
51 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
52 sun4*:SunOS:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
53 echo sparc-sun-sunos${UNAME_RELEASE}
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
54 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
55 sun3*:SunOS:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
56 echo m68k-sun-sunos${UNAME_RELEASE}
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
57 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
58 RISC*:ULTRIX:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
59 echo mips-dec-ultrix${UNAME_RELEASE}
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
60 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
61 VAX*:ULTRIX*:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
62 echo vax-dec-ultrix${UNAME_RELEASE}
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
63 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
64 m88k:*:4*:R4*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
65 echo m88k-motorola-sysv4
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
66 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
67 m88k:*:3*:R3*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
68 echo m88k-motorola-sysv3
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
69 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
70 *:IRIX:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
71 echo mips-sgi-irix${UNAME_RELEASE}
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
72 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
73 i[34]86:AIX:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
74 echo i386-ibm-aix
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
75 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
76 *:AIX:2:3)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
77 echo rs6000-ibm-aix3.2
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
78 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
79 *:AIX:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
80 echo rs6000-ibm-aix
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
81 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
82 *:BOSX:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
83 echo rs6000-bull-bosx
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
84 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
85 9000/31?:HP-UX:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
86 echo m68000-hp-hpux
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
87 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
88 9000/3??:HP-UX:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
89 echo m68k-hp-hpux
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
90 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
91 9000/7??:HP-UX:*:* | 9000/8?7:HP-UX:*:* )
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
92 echo hppa1.1-hp-hpux
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
93 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
94 9000/8??:HP-UX:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
95 echo hppa1.0-hp-hpux
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
96 exit 0 ;;
3622
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
97 9000/8??:4.3bsd:*:* | 9000/8?7:4.3bsd:*:* )
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
98 echo hppa1.1-hp-bsd
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
99 exit 0 ;;
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
100 9000/8??:4.3bsd:*:*)
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
101 echo hppa1.0-hp-bsd
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
102 exit 0 ;;
2907
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
103 C1*:ConvexOS:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
104 echo c1-convex-bsd
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
105 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
106 C2*:ConvexOS:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
107 echo c2-convex-bsd
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
108 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
109 CRAY*X-MP:UNICOS:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
110 echo xmp-cray-unicos
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
111 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
112 CRAY*Y-MP:UNICOS:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
113 echo ymp-cray-unicos
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
114 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
115 CRAY-2:UNICOS:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
116 echo cray2-cray-unicos
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
117 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
118 i[34]86:Linux:*:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
119 echo ${UNAME_MACHINE}-unknown-linux
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
120 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
121 i[34]86:UNIX_SV:4.*:*)
3622
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
122 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
123 echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
124 else
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
125 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
126 fi
2907
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
127 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
128 i[34]86:*:3.2:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
129 if /bin/uname -X 2>/dev/null >/dev/null ; then
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
130 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
131 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
132 echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
133 else
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
134 echo ${UNAME_MACHINE}-unknown-sysv3.2
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
135 fi
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
136 exit 0 ;;
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
137 mini*:CTIX:SYS*5:*)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
138 # "miniframe"
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
139 echo m68010-convergent-sysv
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
140 exit 0 ;;
3622
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
141 M680[234]0:*:R3V[567]*:*)
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
142 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
2907
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
143 esac
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
144
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
145 echo '(No uname command or uname output not recognized.)' 1>&2
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
146 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
147
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
148 cat >dummy.c <<EOF
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
149 main()
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
150 {
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
151 #if defined (sony)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
152 #if defined (MIPSEB)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
153 #else
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
154 printf("m68k-sony-newsos\n"); exit(0);
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
155 #endif
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
156 #endif
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
157
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
158 #if defined(hp300) && !defined(hpux)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
159 printf("m68k-hp-bsd\n"); exit(0);
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
160 #endif
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
161
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
162 #if defined (MULTIMAX) || defined (n16)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
163 #if defined (UMAXV)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
164 printf("ns32k-encore-sysv\n"); exit(0);
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
165 #else
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
166 #if defined (CMU)
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
167 printf("ns32k-encore-mach\n"); exit(0);
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
168 #else
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
169 printf("ns32k-encore-bsd\n"); exit(0);
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
170 #endif
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
171 #endif
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
172 #endif
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
173
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
174 #if defined(__386BSD__) || (defined(__bsdi__) && defined(__i386__))
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
175 printf("i386-unknown-bsd\n"); exit(0);
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
176 #endif
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
177
3622
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
178 #if defined(sequent)
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
179 #if defined(i386)
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
180 printf("i386-sequent-dynix\n"); exit(0);
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
181 #endif
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
182 #if defined (ns32000)
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
183 printf("ns32k-sequent-dynix\n"); exit(0);
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
184 #endif
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
185 #endif
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
186
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
187 #if defined(_SEQUENT_)
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
188 printf("i386-sequent-ptx\n"); exit(0);
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
189 #endif
62c03085c0d9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2907
diff changeset
190
2907
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
191 exit (1);
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
192 }
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
193 EOF
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
194
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
195 ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
196 rm -f dummy.c dummy
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
197
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
198 echo '(Unable to guess system type)' 1>&2
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
199
d57fe7ef5a9f Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
200 exit 1