comparison config.guess @ 1057:d94193f2620c

[project @ 1995-01-20 22:32:28 by jwe]
author jwe
date Fri, 20 Jan 1995 22:32:28 +0000
parents bd2e9171b66a
children 611d403c7f3d
comparison
equal deleted inserted replaced
1056:de34f868e388 1057:d94193f2620c
1 #!/bin/sh 1 #!/bin/sh
2 # This script attempts to guess a canonical system name. 2 # Attempt to guess a canonical system name.
3 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. 3 # Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
4 # 4 #
5 # This file is free software; you can redistribute it and/or modify it 5 # This file is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by 6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or 7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version. 8 # (at your option) any later version.
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details. 13 # General Public License for more details.
14 # 14 #
15 # You should have received a copy of the GNU General Public License 15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software 16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 #
19 # As a special exception to the GNU General Public License, if you
20 # distribute this file as part of a program that contains a
21 # configuration script generated by Autoconf, you may include it under
22 # the same distribution terms that you use for the rest of that program.
18 23
19 # Written by Per Bothner <bothner@cygnus.com>. 24 # Written by Per Bothner <bothner@cygnus.com>.
20 # The master version of this file is at the FSF in /home/gd/gnu/lib. 25 # The master version of this file is at the FSF in /home/gd/gnu/lib.
21 # 26 #
22 # This script attempts to guess a canonical system name similar to 27 # This script attempts to guess a canonical system name similar to
72 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 77 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
73 # it's likely to be more like Solaris than SunOS4. 78 # it's likely to be more like Solaris than SunOS4.
74 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 79 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
75 exit 0 ;; 80 exit 0 ;;
76 sun4*:SunOS:*:*) 81 sun4*:SunOS:*:*)
82 case "`/usr/bin/arch -k`" in
83 Series*|S4*)
84 UNAME_RELEASE=`uname -v`
85 ;;
86 esac
77 # Japanese Language versions have a version number like `4.1.3-JL'. 87 # Japanese Language versions have a version number like `4.1.3-JL'.
78 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 88 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
79 exit 0 ;; 89 exit 0 ;;
80 sun3*:SunOS:*:*) 90 sun3*:SunOS:*:*)
81 echo m68k-sun-sunos${UNAME_RELEASE} 91 echo m68k-sun-sunos${UNAME_RELEASE}
120 echo m68k-tektronix-bsd 130 echo m68k-tektronix-bsd
121 exit 0 ;; 131 exit 0 ;;
122 *:IRIX:*:*) 132 *:IRIX:*:*)
123 echo mips-sgi-irix${UNAME_RELEASE} 133 echo mips-sgi-irix${UNAME_RELEASE}
124 exit 0 ;; 134 exit 0 ;;
135 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
136 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
137 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
125 i[34]86:AIX:*:*) 138 i[34]86:AIX:*:*)
126 echo i386-ibm-aix 139 echo i386-ibm-aix
127 exit 0 ;; 140 exit 0 ;;
128 *:AIX:2:3) 141 *:AIX:2:3)
129 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 142 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
145 echo rs6000-ibm-aix3.2.4 158 echo rs6000-ibm-aix3.2.4
146 else 159 else
147 echo rs6000-ibm-aix3.2 160 echo rs6000-ibm-aix3.2
148 fi 161 fi
149 exit 0 ;; 162 exit 0 ;;
150 *:AIX:1:4) 163 *:AIX:*:4)
151 if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then 164 if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then
152 echo rs6000-ibm-aix4.1 165 IBM_ARCH=rs6000
153 else 166 else
154 echo powerpc-ibm-aix4.1 167 IBM_ARCH=powerpc
155 fi 168 fi
169 if grep bos410 /usr/include/stdio.h >/dev/null 2>&1; then
170 IBM_REV=4.1
171 elif grep bos411 /usr/include/stdio.h >/dev/null 2>&1; then
172 IBM_REV=4.1.1
173 else
174 IBM_REV=4.${UNAME_RELEASE}
175 fi
176 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
156 exit 0 ;; 177 exit 0 ;;
157 *:AIX:*:*) 178 *:AIX:*:*)
158 echo rs6000-ibm-aix 179 echo rs6000-ibm-aix
159 exit 0 ;; 180 exit 0 ;;
181 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
182 echo romp-ibm-bsd4.4
183 exit 0 ;;
184 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and
185 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
186 exit 0 ;; # report: romp-ibm BSD 4.3
160 *:BOSX:*:*) 187 *:BOSX:*:*)
161 echo rs6000-bull-bosx 188 echo rs6000-bull-bosx
162 exit 0 ;; 189 exit 0 ;;
163 DPX/2?00:B.O.S.:*:*) 190 DPX/2?00:B.O.S.:*:*)
164 echo m68k-bull-sysv3 191 echo m68k-bull-sysv3
249 echo cray2-cray-unicos 276 echo cray2-cray-unicos
250 exit 0 ;; 277 exit 0 ;;
251 hp3[0-9][05]:NetBSD:*:*) 278 hp3[0-9][05]:NetBSD:*:*)
252 echo m68k-hp-netbsd${UNAME_RELEASE} 279 echo m68k-hp-netbsd${UNAME_RELEASE}
253 exit 0 ;; 280 exit 0 ;;
254 i[34]86:BSD/386:*:*) 281 i[34]86:BSD/386:*:* | *:BSD/OS:*:*)
255 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 282 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
256 exit 0 ;; 283 exit 0 ;;
257 *:FreeBSD:*:*) 284 *:FreeBSD:*:*)
258 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/(.*//'` 285 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
259 exit 0 ;; 286 exit 0 ;;
260 *:NetBSD:*:*) 287 *:NetBSD:*:*)
261 echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 288 echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
262 exit 0 ;; 289 exit 0 ;;
263 *:GNU:*:*) 290 *:GNU:*:*)
291 fi 318 fi
292 exit 0 ;; 319 exit 0 ;;
293 Intel:Mach:3*:*) 320 Intel:Mach:3*:*)
294 echo i386-unknown-mach3 321 echo i386-unknown-mach3
295 exit 0 ;; 322 exit 0 ;;
323 paragon:*:*:*)
324 echo i860-intel-osf1
325 exit 0 ;;
296 i860:*:4.*:*) # i860-SVR4 326 i860:*:4.*:*) # i860-SVR4
297 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 327 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
298 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 328 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
299 else # Add other i860-SVR4 vendors below as they are discovered. 329 else # Add other i860-SVR4 vendors below as they are discovered.
300 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 330 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
304 # "miniframe" 334 # "miniframe"
305 echo m68010-convergent-sysv 335 echo m68010-convergent-sysv
306 exit 0 ;; 336 exit 0 ;;
307 M680[234]0:*:R3V[567]*:*) 337 M680[234]0:*:R3V[567]*:*)
308 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 338 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
309 3[34]??:*:4.0:*) 339 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0)
310 uname -p 2>/dev/null | grep 86 >/dev/null \ 340 uname -p 2>/dev/null | grep 86 >/dev/null \
311 && echo i486-ncr-sysv4 && exit 0 ;; 341 && echo i486-ncr-sysv4.3 && exit 0 ;;
312 33[56]0,3???:*:4.0:*) 342 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
313 uname -p 2>/dev/null | grep 86 >/dev/null \ 343 uname -p 2>/dev/null | grep 86 >/dev/null \
314 && echo i486-ncr-sysv4.3 && exit 0 ;; 344 && echo i486-ncr-sysv4 && exit 0 ;;
315 m680[234]0:LynxOS:2.2*:*) 345 m680[234]0:LynxOS:2.2*:*)
316 echo m68k-lynx-lynxos${UNAME_RELEASE} 346 echo m68k-lynx-lynxos${UNAME_RELEASE}
317 exit 0 ;; 347 exit 0 ;;
318 mc68030:UNIX_System_V:4.*:*) 348 mc68030:UNIX_System_V:4.*:*)
319 echo m68k-atari-sysv4 349 echo m68k-atari-sysv4
350 #if defined (MIPSEB) 380 #if defined (MIPSEB)
351 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, 381 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
352 I don't know.... */ 382 I don't know.... */
353 printf ("mips-sony-bsd\n"); exit (0); 383 printf ("mips-sony-bsd\n"); exit (0);
354 #else 384 #else
355 printf ("m68k-sony-newsos\n"); exit (0); 385 #include <sys/param.h>
386 printf ("m68k-sony-newsos%s\n",
387 #ifdef NEWSOS4
388 "4"
389 #else
390 ""
391 #endif
392 ); exit (0);
356 #endif 393 #endif
357 #endif 394 #endif
358 395
359 #if defined (__arm) && defined (__acorn) && defined (__unix) 396 #if defined (__arm) && defined (__acorn) && defined (__unix)
360 printf ("arm-acorn-riscix"); exit (0); 397 printf ("arm-acorn-riscix"); exit (0);