Lines Matching +full:i586 +full:- +full:pc +full:- +full:msdosdjgpp
7 timestamp='2011-08-20'
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…
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}
211 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
214 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
217 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
220 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
223 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
228 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
231 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
237 # types through head -n 1, so we only detect the type of CPU 0.
238 …ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head …
250 "EV5.6 (21164PC)")
252 "EV5.7 (21164PC)")
275 # 1.2 uses "1.2" for uname -r.
276 …echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQ…
277 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
285 echo alpha-pc-interix
288 echo alpha-dec-winnt3.5
291 echo m68k-unknown-sysv4
294 echo ${UNAME_MACHINE}-unknown-amigaos
297 echo ${UNAME_MACHINE}-unknown-morphos
300 echo i370-ibm-openedition
303 echo s390-ibm-zvmoe
306 echo powerpc-ibm-os400
309 echo arm-acorn-riscix${UNAME_RELEASE}
312 echo arm-unknown-riscos
314 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
315 echo hppa1.1-hitachi-hiuxmpp
317 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
320 echo pyramid-pyramid-sysv3
322 echo pyramid-pyramid-bsd
326 echo pyramid-pyramid-svr4
329 echo sparc-icl-nx6
332 case `/usr/bin/uname -p` in
333 sparc) echo sparc-icl-nx7; exit ;;
336 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
339 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
342 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
345 echo i386-pc-auroraux${UNAME_RELEASE}
350 # If there is a compiler, see if it is configured for 64-bit objects.
355 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
361 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
367 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
370 case "`/usr/bin/arch -k`" in
372 UNAME_RELEASE=`uname -v`
375 # Japanese Language versions have a version number like `4.1.3-JL'.
376 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
379 echo m68k-sun-sunos${UNAME_RELEASE}
386 echo m68k-sun-sunos${UNAME_RELEASE}
389 echo sparc-sun-sunos${UNAME_RELEASE}
394 echo sparc-auspex-sunos${UNAME_RELEASE}
405 echo m68k-atari-mint${UNAME_RELEASE}
408 echo m68k-atari-mint${UNAME_RELEASE}
411 echo m68k-atari-mint${UNAME_RELEASE}
414 echo m68k-milan-mint${UNAME_RELEASE}
417 echo m68k-hades-mint${UNAME_RELEASE}
420 echo m68k-unknown-mint${UNAME_RELEASE}
423 echo m68k-apple-machten${UNAME_RELEASE}
426 echo powerpc-apple-machten${UNAME_RELEASE}
429 echo mips-dec-mach_bsd4.3
432 echo mips-dec-ultrix${UNAME_RELEASE}
435 echo vax-dec-ultrix${UNAME_RELEASE}
438 echo clipper-intergraph-clix${UNAME_RELEASE}
451 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
454 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
457 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
460 exit (-1);
463 $CC_FOR_BUILD -o $dummy $dummy.c &&
464 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
467 echo mips-mips-riscos${UNAME_RELEASE}
470 echo powerpc-motorola-powermax
472 Motorola:*:4.3:PL8-*)
473 echo powerpc-harris-powermax
476 echo powerpc-harris-powermax
479 echo powerpc-harris-powerunix
482 echo m88k-harris-cxux7
485 echo m88k-motorola-sysv4
488 echo m88k-motorola-sysv3
492 UNAME_PROCESSOR=`/usr/bin/uname -p`
498 echo m88k-dg-dgux${UNAME_RELEASE}
500 echo m88k-dg-dguxbcs${UNAME_RELEASE}
503 echo i586-dg-dgux${UNAME_RELEASE}
507 echo m88k-dolphin-sysv3
511 echo m88k-motorola-sysv3
514 echo m88k-tektronix-sysv3
516 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
517 echo m68k-tektronix-bsd
520 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
522 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
523 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
524 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
526 echo i386-ibm-aix
529 if [ -x /usr/bin/oslevel ] ; then
534 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
546 puts("powerpc-ibm-aix3.2.5");
550 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
554 echo rs6000-ibm-aix3.2.5
557 echo rs6000-ibm-aix3.2.4
559 echo rs6000-ibm-aix3.2
563 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
564 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
569 if [ -x /usr/bin/oslevel ] ; then
574 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
577 echo rs6000-ibm-aix
579 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
580 echo romp-ibm-bsd4.4
582 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
583 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
584 exit ;; # report: romp-ibm BSD 4.3
586 echo rs6000-bull-bosx
589 echo m68k-bull-sysv3
592 echo m68k-hp-bsd
595 echo m68k-hp-bsd4.4
597 9000/[34678]??:HP-UX:*:*)
598 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
602 9000/[678][0-9][0-9])
603 if [ -x /usr/bin/getconf ]; then
613 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
652 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
653 test -z "$HP_ARCH" && HP_ARCH=hppa
660 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
661 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
662 # generating 64-bit code. GNU and HP use different nomenclature:
665 # => hppa2.0w-hp-hpux11.23
667 # => hppa64-hp-hpux11.23
669 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
670 grep -q __LP64__
677 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
679 ia64:HP-UX:*:*)
680 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
681 echo ia64-hp-hpux${HPUX_REV}
683 3050*:HI-UX:*:*)
698 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
699 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
700 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
701 default: puts ("hppa-hitachi-hiuxwe2"); break;
705 puts ("m68k-hitachi-hiuxwe2");
706 else puts ("unknown-hitachi-hiuxwe2");
710 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
712 echo unknown-hitachi-hiuxwe2
715 echo hppa1.1-hp-bsd
718 echo hppa1.0-hp-bsd
721 echo hppa1.0-hp-mpeix
724 echo hppa1.1-hp-osf
727 echo hppa1.0-hp-osf
730 if [ -x /usr/sbin/sysversion ] ; then
731 echo ${UNAME_MACHINE}-unknown-osf1mk
733 echo ${UNAME_MACHINE}-unknown-osf1
737 echo hppa1.1-hp-lites
740 echo c1-convex-bsd
743 if getsysinfo -f scalar_acc
744 then echo c32-convex-bsd
745 else echo c2-convex-bsd
749 echo c34-convex-bsd
752 echo c38-convex-bsd
755 echo c4-convex-bsd
757 CRAY*Y-MP:*:*:*)
758 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
760 CRAY*[A-Z]90:*:*:*)
761 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
762 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
763 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
764 -e 's/\.[^.]*$/.X/'
767 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
770 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
773 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
776 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
779 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
780 …FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\…
781 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
782 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
785 …FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\…
786 … ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
787 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
790 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
793 echo sparc-unknown-bsdi${UNAME_RELEASE}
796 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
799 UNAME_PROCESSOR=`/usr/bin/uname -p`
802 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
804 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
808 echo ${UNAME_MACHINE}-pc-cygwin
811 echo ${UNAME_MACHINE}-pc-mingw32
814 echo ${UNAME_MACHINE}-pc-msys
817 # uname -m includes "-pc" on this system.
818 echo ${UNAME_MACHINE}-mingw32
821 echo ${UNAME_MACHINE}-pc-pw32
826 echo i586-pc-interix${UNAME_RELEASE}
829 echo x86_64-unknown-interix${UNAME_RELEASE}
832 echo ia64-unknown-interix${UNAME_RELEASE}
836 echo i${UNAME_MACHINE}-pc-mks
839 echo x86_64-pc-mks
843 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
845 echo i586-pc-interix
848 echo ${UNAME_MACHINE}-pc-uwin
851 echo x86_64-unknown-cygwin
854 echo powerpcle-unknown-cygwin
857 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
861 …echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$…
865 …o ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${…
868 echo ${UNAME_MACHINE}-pc-minix
871 echo ${UNAME_MACHINE}-unknown-linux-gnu
874 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
883 objdump --private-headers /bin/sh | grep -q ld.so.1
885 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
889 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
890 | grep -q __ARM_EABI__
892 echo ${UNAME_MACHINE}-unknown-linux-gnu
894 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
895 | grep -q __ARM_PCS_VFP
897 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
899 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
904 echo ${UNAME_MACHINE}-unknown-linux-gnu
907 echo cris-axis-linux-gnu
910 echo crisv32-axis-linux-gnu
913 echo frv-unknown-linux-gnu
923 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
924 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
927 echo ${UNAME_MACHINE}-unknown-linux-gnu
930 echo ${UNAME_MACHINE}-unknown-linux-gnu
933 echo ${UNAME_MACHINE}-unknown-linux-gnu
951 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
952 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
955 echo or32-unknown-linux-gnu
958 echo sparc-unknown-linux-gnu
961 echo hppa64-unknown-linux-gnu
965 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
966 PA7*) echo hppa1.1-unknown-linux-gnu ;;
967 PA8*) echo hppa2.0-unknown-linux-gnu ;;
968 *) echo hppa-unknown-linux-gnu ;;
972 echo powerpc64-unknown-linux-gnu
975 echo powerpc64le-unknown-linux-gnu
978 echo powerpc-unknown-linux-gnu
981 echo ${UNAME_MACHINE}-ibm-linux
984 echo ${UNAME_MACHINE}-unknown-linux-gnu
987 echo ${UNAME_MACHINE}-unknown-linux-gnu
990 echo ${UNAME_MACHINE}-unknown-linux-gnu
993 echo ${UNAME_MACHINE}-unknown-linux-gnu
996 echo ${UNAME_MACHINE}-dec-linux-gnu
999 echo x86_64-unknown-linux-gnu
1002 echo ${UNAME_MACHINE}-unknown-linux-gnu
1005 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1008 echo i386-sequent-sysv4
1014 # I just have to hope. -- rms.
1016 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1021 echo ${UNAME_MACHINE}-pc-os2-emx
1023 i*86:XTS-300:*:STOP)
1024 echo ${UNAME_MACHINE}-unknown-stop
1027 echo ${UNAME_MACHINE}-unknown-atheos
1030 echo ${UNAME_MACHINE}-pc-syllable
1033 echo i386-unknown-lynxos${UNAME_RELEASE}
1036 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1041 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1043 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1048 case `/bin/uname -X | grep "^Machine"` in
1050 *Pentium) UNAME_MACHINE=i586 ;;
1053 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1056 if test -f /usr/options/cb.name; then
1057 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1058 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1059 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1060 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1061 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1062 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1063 && UNAME_MACHINE=i586
1064 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1066 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1068 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1070 echo ${UNAME_MACHINE}-pc-sysv32
1073 pc:*:*:*)
1075 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1076 # the processor, so we play safe by assuming i586.
1079 # this is a cross-build.
1080 echo i586-pc-msdosdjgpp
1083 echo i386-pc-mach3
1086 echo i860-intel-osf1
1088 i860:*:4.*:*) # i860-SVR4
1090 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1091 else # Add other i860-SVR4 vendors below as they are discovered.
1092 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1097 echo m68010-convergent-sysv
1100 echo m68k-convergent-sysv
1102 M680?0:D-NIX:5.3:*)
1103 echo m68k-diab-dnix
1106 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1109 test -r /etc/.relid \
1110 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1111 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1112 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1113 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1114 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1116 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1117 && { echo i486-ncr-sysv4; exit; } ;;
1120 test -r /etc/.relid \
1121 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1122 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1123 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1124 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1125 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1126 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1127 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1129 echo m68k-unknown-lynxos${UNAME_RELEASE}
1132 echo m68k-atari-sysv4
1135 echo sparc-unknown-lynxos${UNAME_RELEASE}
1138 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1141 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1144 echo mips-dde-sysv${UNAME_RELEASE}
1146 RM*:ReliantUNIX-*:*:*)
1147 echo mips-sni-sysv4
1149 RM*:SINIX-*:*:*)
1150 echo mips-sni-sysv4
1152 *:SINIX-*:*:*)
1153 if uname -p 2>/dev/null >/dev/null ; then
1154 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1155 echo ${UNAME_MACHINE}-sni-sysv4
1157 echo ns32k-sni-sysv
1162 echo i586-unisys-sysv4
1166 # How about differentiating between stratus architectures? -djm
1167 echo hppa1.1-stratus-sysv4
1171 echo i860-stratus-sysv4
1175 echo ${UNAME_MACHINE}-stratus-vos
1179 echo hppa1.1-stratus-vos
1182 echo m68k-apple-aux${UNAME_RELEASE}
1184 news*:NEWS-OS:6*:*)
1185 echo mips-sony-newsos6
1188 if [ -d /usr/nec ]; then
1189 echo mips-nec-sysv${UNAME_RELEASE}
1191 echo mips-unknown-sysv${UNAME_RELEASE}
1195 echo powerpc-be-beos
1198 echo powerpc-apple-beos
1200 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1201 echo i586-pc-beos
1203 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1204 echo i586-pc-haiku
1207 echo x86_64-unknown-haiku
1209 SX-4:SUPER-UX:*:*)
1210 echo sx4-nec-superux${UNAME_RELEASE}
1212 SX-5:SUPER-UX:*:*)
1213 echo sx5-nec-superux${UNAME_RELEASE}
1215 SX-6:SUPER-UX:*:*)
1216 echo sx6-nec-superux${UNAME_RELEASE}
1218 SX-7:SUPER-UX:*:*)
1219 echo sx7-nec-superux${UNAME_RELEASE}
1221 SX-8:SUPER-UX:*:*)
1222 echo sx8-nec-superux${UNAME_RELEASE}
1224 SX-8R:SUPER-UX:*:*)
1225 echo sx8r-nec-superux${UNAME_RELEASE}
1228 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1231 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1234 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1240 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1248 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1251 UNAME_PROCESSOR=`uname -p`
1254 UNAME_MACHINE=pc
1256 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1259 echo i386-pc-qnx
1261 NEO-?:NONSTOP_KERNEL:*:*)
1262 echo neo-tandem-nsk${UNAME_RELEASE}
1264 NSE-?:NONSTOP_KERNEL:*:*)
1265 echo nse-tandem-nsk${UNAME_RELEASE}
1267 NSR-?:NONSTOP_KERNEL:*:*)
1268 echo nsr-tandem-nsk${UNAME_RELEASE}
1270 *:NonStop-UX:*:*)
1271 echo mips-compaq-nonstopux
1274 echo bs2000-siemens-sysv
1277 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1280 # "uname -m" is not consistent, so use $cputype instead. 386
1288 echo ${UNAME_MACHINE}-unknown-plan9
1290 *:TOPS-10:*:*)
1291 echo pdp10-unknown-tops10
1294 echo pdp10-unknown-tenex
1296 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1297 echo pdp10-dec-tops20
1299 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1300 echo pdp10-xkl-tops20
1302 *:TOPS-20:*:*)
1303 echo pdp10-unknown-tops20
1306 echo pdp10-unknown-its
1309 echo mips-sei-seiux${UNAME_RELEASE}
1312 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1315 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1317 A*) echo alpha-dec-vms ; exit ;;
1318 I*) echo ia64-dec-vms ; exit ;;
1319 V*) echo vax-dec-vms ; exit ;;
1322 echo i386-pc-xenix
1325 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1328 echo ${UNAME_MACHINE}-pc-rdos
1331 echo ${UNAME_MACHINE}-pc-aros
1350 printf ("mips-sony-bsd\n"); exit (0);
1353 printf ("m68k-sony-newsos%s\n",
1364 printf ("arm-acorn-riscix\n"); exit (0);
1368 printf ("m68k-hp-bsd\n"); exit (0);
1376 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1378 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1380 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1386 printf ("ns32k-encore-sysv\n"); exit (0);
1389 printf ("ns32k-encore-mach\n"); exit (0);
1391 printf ("ns32k-encore-bsd\n"); exit (0);
1397 printf ("i386-pc-bsd\n"); exit (0);
1402 printf ("i386-sequent-dynix\n"); exit (0);
1405 printf ("ns32k-sequent-dynix\n"); exit (0);
1415 printf ("i386-sequent-ptx2\n"); exit (0);
1418 printf ("i386-sequent-ptx1\n"); exit (0);
1420 printf ("i386-sequent-ptx\n"); exit (0);
1429 printf ("vax-dec-bsd4.3\n"); exit (0);
1432 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1434 printf ("vax-dec-bsd\n"); exit (0);
1438 printf ("vax-dec-bsd\n"); exit (0);
1441 printf ("vax-dec-ultrix\n"); exit (0);
1446 printf ("i860-alliant-bsd\n"); exit (0);
1453 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1458 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1462 if [ -x /usr/convex/getsysinfo ]
1464 case `getsysinfo -f cpu_type` in
1466 echo c1-convex-bsd
1469 if getsysinfo -f scalar_acc
1470 then echo c32-convex-bsd
1471 else echo c2-convex-bsd
1475 echo c34-convex-bsd
1478 echo c38-convex-bsd
1481 echo c4-convex-bsd
1499 pertinent to <config-patches@gnu.org> in order to provide the needed
1504 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1509 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1510 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1514 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1528 # eval: (add-hook 'write-file-hooks 'time-stamp)
1529 # time-stamp-start: "timestamp='"
1530 # time-stamp-format: "%:y-%02m-%02d"
1531 # time-stamp-end: "'"