• Home
  • Raw
  • Download

Lines Matching +full:i586 +full:- +full:pc +full:- +full:msdosdjgpp +full:- +full:gcc

7 timestamp='2009-12-30'
21 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
22 # 02110-1301, USA.
31 # diff format) to <config-patches@gnu.org> and include a ChangeLog
41 me=`echo "$0" | sed -e 's,.*/,,'`
49 -h, --help print this help, then exit
50 -t, --time-stamp print date of last modification, then exit
51 -v, --version print version number, then exit
53 Report bugs and patches to <config-patches@gnu.org>."
67 Try \`$me --help' for more information."
70 while test $# -gt 0 ; do
72 --time-stamp | --time* | -t )
74 --version | -v )
76 --help | --h* | -h )
78 -- ) # Stop option processing
80 - ) # Use stdin as input.
82 -* )
97 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
108 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
109 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
111 …{ tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp…
112 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
113 …{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp director…
119 for c in cc gcc c89 c99 ; do
120 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
133 # (ghazi@noc.rutgers.edu 1994-08-24)
134 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
138 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
139 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
140 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
141 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
143 # Note: order is significant - the case branches are not exclusive.
148 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
149 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
150 # switched to ELF, *-*-netbsd* would select the old
157 sysctl="sysctl -n hw.machine_arch"
161 armeb) machine=armeb-unknown ;;
162 arm*) machine=arm-unknown ;;
163 sh3el) machine=shl-unknown ;;
164 sh3eb) machine=sh-unknown ;;
165 sh5el) machine=sh5le-unknown ;;
166 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
173 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
174 | grep -q __ELF__
191 # suitable tag, in the style of linux-gnu.
194 release='-gnu'
197 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
200 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
202 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
203 echo "${machine}-${os}${release}"
207 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
210 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
213 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
216 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
219 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
224 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
227 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
233 # types through head -n 1, so we only detect the type of CPU 0.
234 …ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head
246 "EV5.6 (21164PC)")
248 "EV5.7 (21164PC)")
271 # 1.2 uses "1.2" for uname -r.
272 …echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQ…
278 echo alpha-pc-interix
281 echo alpha-dec-winnt3.5
284 echo m68k-unknown-sysv4
287 echo ${UNAME_MACHINE}-unknown-amigaos
290 echo ${UNAME_MACHINE}-unknown-morphos
293 echo i370-ibm-openedition
296 echo s390-ibm-zvmoe
299 echo powerpc-ibm-os400
302 echo arm-acorn-riscix${UNAME_RELEASE}
305 echo arm-unknown-riscos
307 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
308 echo hppa1.1-hitachi-hiuxmpp
310 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
313 echo pyramid-pyramid-sysv3
315 echo pyramid-pyramid-bsd
319 echo pyramid-pyramid-svr4
322 echo sparc-icl-nx6
325 case `/usr/bin/uname -p` in
326 sparc) echo sparc-icl-nx7; exit ;;
329 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
338 echo i386-pc-auroraux${UNAME_RELEASE}
343 # If there is a compiler, see if it is configured for 64-bit objects.
344 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
348 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
354 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
360 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
363 case "`/usr/bin/arch -k`" in
365 UNAME_RELEASE=`uname -v`
368 # Japanese Language versions have a version number like `4.1.3-JL'.
369 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
372 echo m68k-sun-sunos${UNAME_RELEASE}
379 echo m68k-sun-sunos${UNAME_RELEASE}
382 echo sparc-sun-sunos${UNAME_RELEASE}
387 echo sparc-auspex-sunos${UNAME_RELEASE}
398 echo m68k-atari-mint${UNAME_RELEASE}
401 echo m68k-atari-mint${UNAME_RELEASE}
404 echo m68k-atari-mint${UNAME_RELEASE}
407 echo m68k-milan-mint${UNAME_RELEASE}
410 echo m68k-hades-mint${UNAME_RELEASE}
413 echo m68k-unknown-mint${UNAME_RELEASE}
416 echo m68k-apple-machten${UNAME_RELEASE}
419 echo powerpc-apple-machten${UNAME_RELEASE}
422 echo mips-dec-mach_bsd4.3
425 echo mips-dec-ultrix${UNAME_RELEASE}
428 echo vax-dec-ultrix${UNAME_RELEASE}
431 echo clipper-intergraph-clix${UNAME_RELEASE}
444 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
447 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
450 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
453 exit (-1);
456 $CC_FOR_BUILD -o $dummy $dummy.c &&
457 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
460 echo mips-mips-riscos${UNAME_RELEASE}
463 echo powerpc-motorola-powermax
465 Motorola:*:4.3:PL8-*)
466 echo powerpc-harris-powermax
469 echo powerpc-harris-powermax
472 echo powerpc-harris-powerunix
475 echo m88k-harris-cxux7
478 echo m88k-motorola-sysv4
481 echo m88k-motorola-sysv3
485 UNAME_PROCESSOR=`/usr/bin/uname -p`
491 echo m88k-dg-dgux${UNAME_RELEASE}
493 echo m88k-dg-dguxbcs${UNAME_RELEASE}
496 echo i586-dg-dgux${UNAME_RELEASE}
500 echo m88k-dolphin-sysv3
504 echo m88k-motorola-sysv3
507 echo m88k-tektronix-sysv3
509 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
510 echo m68k-tektronix-bsd
513 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
515 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
516 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
517 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
519 echo i386-ibm-aix
522 if [ -x /usr/bin/oslevel ] ; then
527 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
539 puts("powerpc-ibm-aix3.2.5");
543 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
547 echo rs6000-ibm-aix3.2.5
550 echo rs6000-ibm-aix3.2.4
552 echo rs6000-ibm-aix3.2
556 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
557 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
562 if [ -x /usr/bin/oslevel ] ; then
567 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
570 echo rs6000-ibm-aix
572 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
573 echo romp-ibm-bsd4.4
575 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
576 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
577 exit ;; # report: romp-ibm BSD 4.3
579 echo rs6000-bull-bosx
582 echo m68k-bull-sysv3
585 echo m68k-hp-bsd
588 echo m68k-hp-bsd4.4
590 9000/[34678]??:HP-UX:*:*)
591 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
595 9000/[678][0-9][0-9])
596 if [ -x /usr/bin/getconf ]; then
606 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
645 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
646 test -z "$HP_ARCH" && HP_ARCH=hppa
653 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
654 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
655 # generating 64-bit code. GNU and HP use different nomenclature:
658 # => hppa2.0w-hp-hpux11.23
660 # => hppa64-hp-hpux11.23
662 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
663 grep -q __LP64__
670 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
672 ia64:HP-UX:*:*)
673 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
674 echo ia64-hp-hpux${HPUX_REV}
676 3050*:HI-UX:*:*)
691 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
692 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
693 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
694 default: puts ("hppa-hitachi-hiuxwe2"); break;
698 puts ("m68k-hitachi-hiuxwe2");
699 else puts ("unknown-hitachi-hiuxwe2");
703 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
705 echo unknown-hitachi-hiuxwe2
708 echo hppa1.1-hp-bsd
711 echo hppa1.0-hp-bsd
714 echo hppa1.0-hp-mpeix
717 echo hppa1.1-hp-osf
720 echo hppa1.0-hp-osf
723 if [ -x /usr/sbin/sysversion ] ; then
724 echo ${UNAME_MACHINE}-unknown-osf1mk
726 echo ${UNAME_MACHINE}-unknown-osf1
730 echo hppa1.1-hp-lites
733 echo c1-convex-bsd
736 if getsysinfo -f scalar_acc
737 then echo c32-convex-bsd
738 else echo c2-convex-bsd
742 echo c34-convex-bsd
745 echo c38-convex-bsd
748 echo c4-convex-bsd
750 CRAY*Y-MP:*:*:*)
751 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
753 CRAY*[A-Z]90:*:*:*)
754 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
755 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
756 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
757 -e 's/\.[^.]*$/.X/'
760 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
763 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
766 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
769 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
772 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
773 …FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\…
774 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
775 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
778 …FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\…
779 … ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
780 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
783 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
786 echo sparc-unknown-bsdi${UNAME_RELEASE}
789 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
794 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
796 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
798 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
802 echo ${UNAME_MACHINE}-pc-cygwin
805 echo ${UNAME_MACHINE}-pc-mingw32
808 # uname -m includes "-pc" on this system.
809 echo ${UNAME_MACHINE}-mingw32
812 echo ${UNAME_MACHINE}-pc-pw32
817 echo i586-pc-interix${UNAME_RELEASE}
820 echo x86_64-unknown-interix${UNAME_RELEASE}
823 echo ia64-unknown-interix${UNAME_RELEASE}
827 echo i${UNAME_MACHINE}-pc-mks
830 echo x86_64-pc-mks
834 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
836 echo i586-pc-interix
839 echo ${UNAME_MACHINE}-pc-uwin
842 echo x86_64-unknown-cygwin
845 echo powerpcle-unknown-cygwin
848 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
852 …echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$…
856 …o ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${…
859 echo ${UNAME_MACHINE}-pc-minix
862 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
871 objdump --private-headers /bin/sh | grep -q ld.so.1
873 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
877 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
878 | grep -q __ARM_EABI__
880 echo ${UNAME_MACHINE}-unknown-linux-gnu
882 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
886 echo ${UNAME_MACHINE}-unknown-linux-gnu
889 echo cris-axis-linux-gnu
892 echo crisv32-axis-linux-gnu
895 echo frv-unknown-linux-gnu
905 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
906 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
909 echo ${UNAME_MACHINE}-unknown-linux-gnu
912 echo ${UNAME_MACHINE}-unknown-linux-gnu
915 echo ${UNAME_MACHINE}-unknown-linux-gnu
933 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
934 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
937 echo or32-unknown-linux-gnu
940 echo sparc-unknown-linux-gnu
943 echo hppa64-unknown-linux-gnu
947 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
948 PA7*) echo hppa1.1-unknown-linux-gnu ;;
949 PA8*) echo hppa2.0-unknown-linux-gnu ;;
950 *) echo hppa-unknown-linux-gnu ;;
954 echo powerpc64-unknown-linux-gnu
957 echo powerpc-unknown-linux-gnu
960 echo ${UNAME_MACHINE}-ibm-linux
963 echo ${UNAME_MACHINE}-unknown-linux-gnu
966 echo ${UNAME_MACHINE}-unknown-linux-gnu
969 echo ${UNAME_MACHINE}-unknown-linux-gnu
972 echo ${UNAME_MACHINE}-dec-linux-gnu
975 echo x86_64-unknown-linux-gnu
978 echo ${UNAME_MACHINE}-unknown-linux-gnu
981 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
984 echo i386-sequent-sysv4
990 # I just have to hope. -- rms.
992 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
997 echo ${UNAME_MACHINE}-pc-os2-emx
999 i*86:XTS-300:*:STOP)
1000 echo ${UNAME_MACHINE}-unknown-stop
1003 echo ${UNAME_MACHINE}-unknown-atheos
1006 echo ${UNAME_MACHINE}-pc-syllable
1009 echo i386-unknown-lynxos${UNAME_RELEASE}
1012 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1017 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1019 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1024 case `/bin/uname -X | grep "^Machine"` in
1026 *Pentium) UNAME_MACHINE=i586 ;;
1029 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1032 if test -f /usr/options/cb.name; then
1033 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1034 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1035 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1036 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1037 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1038 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1039 && UNAME_MACHINE=i586
1040 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1042 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1044 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1046 echo ${UNAME_MACHINE}-pc-sysv32
1049 pc:*:*:*)
1051 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1052 # the processor, so we play safe by assuming i586.
1055 # this is a cross-build.
1056 echo i586-pc-msdosdjgpp
1059 echo i386-pc-mach3
1062 echo i860-intel-osf1
1064 i860:*:4.*:*) # i860-SVR4
1066 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1067 else # Add other i860-SVR4 vendors below as they are discovered.
1068 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1073 echo m68010-convergent-sysv
1076 echo m68k-convergent-sysv
1078 M680?0:D-NIX:5.3:*)
1079 echo m68k-diab-dnix
1082 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1085 test -r /etc/.relid \
1086 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1087 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1088 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1089 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1090 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1092 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1093 && { echo i486-ncr-sysv4; exit; } ;;
1096 test -r /etc/.relid \
1097 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1098 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1099 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1100 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1101 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1102 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1103 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1105 echo m68k-unknown-lynxos${UNAME_RELEASE}
1108 echo m68k-atari-sysv4
1111 echo sparc-unknown-lynxos${UNAME_RELEASE}
1114 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1117 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1120 echo mips-dde-sysv${UNAME_RELEASE}
1122 RM*:ReliantUNIX-*:*:*)
1123 echo mips-sni-sysv4
1125 RM*:SINIX-*:*:*)
1126 echo mips-sni-sysv4
1128 *:SINIX-*:*:*)
1129 if uname -p 2>/dev/null >/dev/null ; then
1130 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1131 echo ${UNAME_MACHINE}-sni-sysv4
1133 echo ns32k-sni-sysv
1138 echo i586-unisys-sysv4
1142 # How about differentiating between stratus architectures? -djm
1143 echo hppa1.1-stratus-sysv4
1147 echo i860-stratus-sysv4
1151 echo ${UNAME_MACHINE}-stratus-vos
1155 echo hppa1.1-stratus-vos
1158 echo m68k-apple-aux${UNAME_RELEASE}
1160 news*:NEWS-OS:6*:*)
1161 echo mips-sony-newsos6
1164 if [ -d /usr/nec ]; then
1165 echo mips-nec-sysv${UNAME_RELEASE}
1167 echo mips-unknown-sysv${UNAME_RELEASE}
1171 echo powerpc-be-beos
1174 echo powerpc-apple-beos
1176 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1177 echo i586-pc-beos
1179 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1180 echo i586-pc-haiku
1182 SX-4:SUPER-UX:*:*)
1183 echo sx4-nec-superux${UNAME_RELEASE}
1185 SX-5:SUPER-UX:*:*)
1186 echo sx5-nec-superux${UNAME_RELEASE}
1188 SX-6:SUPER-UX:*:*)
1189 echo sx6-nec-superux${UNAME_RELEASE}
1191 SX-7:SUPER-UX:*:*)
1192 echo sx7-nec-superux${UNAME_RELEASE}
1194 SX-8:SUPER-UX:*:*)
1195 echo sx8-nec-superux${UNAME_RELEASE}
1197 SX-8R:SUPER-UX:*:*)
1198 echo sx8r-nec-superux${UNAME_RELEASE}
1201 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1204 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1207 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1213 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1221 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1224 UNAME_PROCESSOR=`uname -p`
1227 UNAME_MACHINE=pc
1229 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1232 echo i386-pc-qnx
1234 NSE-?:NONSTOP_KERNEL:*:*)
1235 echo nse-tandem-nsk${UNAME_RELEASE}
1237 NSR-?:NONSTOP_KERNEL:*:*)
1238 echo nsr-tandem-nsk${UNAME_RELEASE}
1240 *:NonStop-UX:*:*)
1241 echo mips-compaq-nonstopux
1244 echo bs2000-siemens-sysv
1247 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1250 # "uname -m" is not consistent, so use $cputype instead. 386
1258 echo ${UNAME_MACHINE}-unknown-plan9
1260 *:TOPS-10:*:*)
1261 echo pdp10-unknown-tops10
1264 echo pdp10-unknown-tenex
1266 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1267 echo pdp10-dec-tops20
1269 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1270 echo pdp10-xkl-tops20
1272 *:TOPS-20:*:*)
1273 echo pdp10-unknown-tops20
1276 echo pdp10-unknown-its
1279 echo mips-sei-seiux${UNAME_RELEASE}
1282 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1285 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1287 A*) echo alpha-dec-vms ; exit ;;
1288 I*) echo ia64-dec-vms ; exit ;;
1289 V*) echo vax-dec-vms ; exit ;;
1292 echo i386-pc-xenix
1295 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1298 echo ${UNAME_MACHINE}-pc-rdos
1301 echo ${UNAME_MACHINE}-pc-aros
1320 printf ("mips-sony-bsd\n"); exit (0);
1323 printf ("m68k-sony-newsos%s\n",
1334 printf ("arm-acorn-riscix\n"); exit (0);
1338 printf ("m68k-hp-bsd\n"); exit (0);
1346 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1348 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1350 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1356 printf ("ns32k-encore-sysv\n"); exit (0);
1359 printf ("ns32k-encore-mach\n"); exit (0);
1361 printf ("ns32k-encore-bsd\n"); exit (0);
1367 printf ("i386-pc-bsd\n"); exit (0);
1372 printf ("i386-sequent-dynix\n"); exit (0);
1375 printf ("ns32k-sequent-dynix\n"); exit (0);
1385 printf ("i386-sequent-ptx2\n"); exit (0);
1388 printf ("i386-sequent-ptx1\n"); exit (0);
1390 printf ("i386-sequent-ptx\n"); exit (0);
1399 printf ("vax-dec-bsd4.3\n"); exit (0);
1402 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1404 printf ("vax-dec-bsd\n"); exit (0);
1408 printf ("vax-dec-bsd\n"); exit (0);
1411 printf ("vax-dec-ultrix\n"); exit (0);
1416 printf ("i860-alliant-bsd\n"); exit (0);
1423 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1428 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1432 if [ -x /usr/convex/getsysinfo ]
1434 case `getsysinfo -f cpu_type` in
1436 echo c1-convex-bsd
1439 if getsysinfo -f scalar_acc
1440 then echo c32-convex-bsd
1441 else echo c2-convex-bsd
1445 echo c34-convex-bsd
1448 echo c38-convex-bsd
1451 echo c4-convex-bsd
1469 pertinent to <config-patches@gnu.org> in order to provide the needed
1474 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1475 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1476 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1477 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1479 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1480 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1484 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1498 # eval: (add-hook 'write-file-hooks 'time-stamp)
1499 # time-stamp-start: "timestamp='"
1500 # time-stamp-format: "%:y-%02m-%02d"
1501 # time-stamp-end: "'"