/[xlog]/xlog/config.guess
ViewVC logotype

Diff of /xlog/config.guess

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by pa4tu, Tue Nov 5 19:05:28 2002 UTC revision 1.3 by pa4tu, Fri Jan 17 16:06:15 2003 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2  # Attempt to guess a canonical system name.  # Attempt to guess a canonical system name.
3  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4  #   2000, 2001, 2002 Free Software Foundation, Inc.  #   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5    
6  timestamp='2002-09-03'  timestamp='2003-01-10'
7    
8  # This file is free software; you can redistribute it and/or modify it  # This file is free software; you can redistribute it and/or modify it
9  # under the terms of the GNU General Public License as published by  # under the terms of the GNU General Public License as published by
# Line 98  trap 'exit 1' 1 2 15 Line 98  trap 'exit 1' 1 2 15
98  # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still  # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
99  # use `HOST_CC' if defined, but it is deprecated.  # use `HOST_CC' if defined, but it is deprecated.
100    
101  # This shell variable is my proudest work .. or something. --bje  # Portable tmp directory creation inspired by the Autoconf team.
102    
103  set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ;  set_cc_for_build='
104  (old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old)  trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
105     || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ;  trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
106  dummy=$tmpdir/dummy ;  : ${TMPDIR=/tmp} ;
107  files="$dummy.c $dummy.o $dummy.rel $dummy" ;   { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
108  trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ;   { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
109     { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
110    dummy=$tmp/dummy ;
111    tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
112  case $CC_FOR_BUILD,$HOST_CC,$CC in  case $CC_FOR_BUILD,$HOST_CC,$CC in
113   ,,)    echo "int x;" > $dummy.c ;   ,,)    echo "int x;" > $dummy.c ;
114          for c in cc gcc c89 c99 ; do          for c in cc gcc c89 c99 ; do
115            if ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; then            if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
116               CC_FOR_BUILD="$c"; break ;               CC_FOR_BUILD="$c"; break ;
117            fi ;            fi ;
118          done ;          done ;
         rm -f $files ;  
119          if test x"$CC_FOR_BUILD" = x ; then          if test x"$CC_FOR_BUILD" = x ; then
120            CC_FOR_BUILD=no_compiler_found ;            CC_FOR_BUILD=no_compiler_found ;
121          fi          fi
122          ;;          ;;
123   ,,*)   CC_FOR_BUILD=$CC ;;   ,,*)   CC_FOR_BUILD=$CC ;;
124   ,*,*)  CC_FOR_BUILD=$HOST_CC ;;   ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
125  esac ;  esac ;'
 unset files'  
126    
127  # This is needed to find uname on a Pyramid OSx when run in the BSD universe.  # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
128  # (ghazi@noc.rutgers.edu 1994-08-24)  # (ghazi@noc.rutgers.edu 1994-08-24)
# Line 178  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 179  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
179                  ;;                  ;;
180          esac          esac
181          # The OS release          # The OS release
182          release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`          # Debian GNU/NetBSD machines have a different userland, and
183            # thus, need a distinct triplet. However, they do not need
184            # kernel version information, so it can be replaced with a
185            # suitable tag, in the style of linux-gnu.
186            case "${UNAME_VERSION}" in
187                Debian*)
188                    release='-gnu'
189                    ;;
190                *)
191                    release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
192                    ;;
193            esac
194          # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:          # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
195          # contains redundant information, the shorter form:          # contains redundant information, the shorter form:
196          # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.          # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
# Line 223  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 235  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
235      *:OpenBSD:*:*)      *:OpenBSD:*:*)
236          echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}          echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
237          exit 0 ;;          exit 0 ;;
238        *:MicroBSD:*:*)
239            echo ${UNAME_MACHINE}-unknown-microbsd${UNAME_RELEASE}
240            exit 0 ;;
241      alpha:OSF1:*:*)      alpha:OSF1:*:*)
242          if test $UNAME_RELEASE = "V4.0"; then          if test $UNAME_RELEASE = "V4.0"; then
243                  UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`                  UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
# Line 257  main: Line 272  main:
272          jsr \$26,exit          jsr \$26,exit
273          .end main          .end main
274  EOF  EOF
275          $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null          $CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null
276          if test "$?" = 0 ; then          if test "$?" = 0 ; then
277                  case `$dummy` in                  case `$dummy` in
278                          0-0)                          0-0)
# Line 286  EOF Line 301  EOF
301                                  ;;                                  ;;
302                  esac                  esac
303          fi          fi
         rm -f $dummy.s $dummy && rmdir $tmpdir  
304          echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`          echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
305          exit 0 ;;          exit 0 ;;
306      Alpha\ *:Windows_NT*:*)      Alpha\ *:Windows_NT*:*)
# Line 437  EOF Line 451  EOF
451            exit (-1);            exit (-1);
452          }          }
453  EOF  EOF
454          $CC_FOR_BUILD $dummy.c -o $dummy \          $CC_FOR_BUILD -o $dummy $dummy.c \
455            && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \            && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
456            && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0            && exit 0
         rm -f $dummy.c $dummy && rmdir $tmpdir  
457          echo mips-mips-riscos${UNAME_RELEASE}          echo mips-mips-riscos${UNAME_RELEASE}
458          exit 0 ;;          exit 0 ;;
459      Motorola:PowerMAX_OS:*:*)      Motorola:PowerMAX_OS:*:*)
# Line 449  EOF Line 462  EOF
462      Motorola:*:4.3:PL8-*)      Motorola:*:4.3:PL8-*)
463          echo powerpc-harris-powermax          echo powerpc-harris-powermax
464          exit 0 ;;          exit 0 ;;
465      Night_Hawk:*:*:PowerMAX_OS)      Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
466          echo powerpc-harris-powermax          echo powerpc-harris-powermax
467          exit 0 ;;          exit 0 ;;
468      Night_Hawk:Power_UNIX:*:*)      Night_Hawk:Power_UNIX:*:*)
# Line 524  EOF Line 537  EOF
537                          exit(0);                          exit(0);
538                          }                          }
539  EOF  EOF
540                  $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0                  $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
                 rm -f $dummy.c $dummy && rmdir $tmpdir  
541                  echo rs6000-ibm-aix3.2.5                  echo rs6000-ibm-aix3.2.5
542          elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then          elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
543                  echo rs6000-ibm-aix3.2.4                  echo rs6000-ibm-aix3.2.4
# Line 623  EOF Line 635  EOF
635                    exit (0);                    exit (0);
636                }                }
637  EOF  EOF
638                      (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy`                      (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
639                      if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi                      test -z "$HP_ARCH" && HP_ARCH=hppa
                     rm -f $dummy.c $dummy && rmdir $tmpdir  
640                  fi ;;                  fi ;;
641          esac          esac
642            if [ ${HP_ARCH} = "hppa2.0w" ]
643            then
644                # avoid double evaluation of $set_cc_for_build
645                test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
646                if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
647                then
648                    HP_ARCH="hppa2.0w"
649                else
650                    HP_ARCH="hppa64"
651                fi
652            fi
653          echo ${HP_ARCH}-hp-hpux${HPUX_REV}          echo ${HP_ARCH}-hp-hpux${HPUX_REV}
654          exit 0 ;;          exit 0 ;;
655      ia64:HP-UX:*:*)      ia64:HP-UX:*:*)
# Line 661  EOF Line 683  EOF
683            exit (0);            exit (0);
684          }          }
685  EOF  EOF
686          $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0          $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
         rm -f $dummy.c $dummy && rmdir $tmpdir  
687          echo unknown-hitachi-hiuxwe2          echo unknown-hitachi-hiuxwe2
688          exit 0 ;;          exit 0 ;;
689      9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )      9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
# Line 720  EOF Line 741  EOF
741      CRAY*TS:*:*:*)      CRAY*TS:*:*:*)
742          echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'          echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
743          exit 0 ;;          exit 0 ;;
     CRAY*T3D:*:*:*)  
         echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'  
         exit 0 ;;  
744      CRAY*T3E:*:*:*)      CRAY*T3E:*:*:*)
745          echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'          echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
746          exit 0 ;;          exit 0 ;;
747      CRAY*SV1:*:*:*)      CRAY*SV1:*:*:*)
748          echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'          echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
749          exit 0 ;;          exit 0 ;;
750        *:UNICOS/mp:*:*)
751            echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
752            exit 0 ;;
753      F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)      F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
754          FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`          FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
755          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
# Line 756  EOF Line 777  EOF
777          #endif          #endif
778  EOF  EOF
779          eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`          eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
         rm -f $dummy.c && rmdir $tmpdir  
780          echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}          echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
781          exit 0 ;;          exit 0 ;;
782      i*:CYGWIN*:*)      i*:CYGWIN*:*)
# Line 769  EOF Line 789  EOF
789          echo ${UNAME_MACHINE}-pc-pw32          echo ${UNAME_MACHINE}-pc-pw32
790          exit 0 ;;          exit 0 ;;
791      x86:Interix*:3*)      x86:Interix*:3*)
792          echo i386-pc-interix3          echo i586-pc-interix3
793            exit 0 ;;
794        [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
795            echo i${UNAME_MACHINE}-pc-mks
796          exit 0 ;;          exit 0 ;;
797      i*:Windows_NT*:* | Pentium*:Windows_NT*:*)      i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
798          # How do we know it's Interix rather than the generic POSIX subsystem?          # How do we know it's Interix rather than the generic POSIX subsystem?
799          # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we          # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
800          # UNAME_MACHINE based on the output of uname instead of i386?          # UNAME_MACHINE based on the output of uname instead of i386?
801          echo i386-pc-interix          echo i586-pc-interix
802          exit 0 ;;          exit 0 ;;
803      i*:UWIN*:*)      i*:UWIN*:*)
804          echo ${UNAME_MACHINE}-pc-uwin          echo ${UNAME_MACHINE}-pc-uwin
# Line 818  EOF Line 841  EOF
841          #endif          #endif
842  EOF  EOF
843          eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`          eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
844          rm -f $dummy.c && rmdir $tmpdir          test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
845          test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0          ;;
846        mips64:Linux:*:*)
847            eval $set_cc_for_build
848            sed 's/^        //' << EOF >$dummy.c
849            #undef CPU
850            #undef mips64
851            #undef mips64el
852            #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
853            CPU=mips64el
854            #else
855            #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
856            CPU=mips64
857            #else
858            CPU=
859            #endif
860            #endif
861    EOF
862            eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
863            test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
864          ;;          ;;
865      ppc:Linux:*:*)      ppc:Linux:*:*)
866          echo powerpc-unknown-linux-gnu          echo powerpc-unknown-linux-gnu
# Line 914  EOF Line 955  EOF
955          #endif          #endif
956  EOF  EOF
957          eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`          eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
         rm -f $dummy.c && rmdir $tmpdir  
958          test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0          test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
959          test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0          test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
960          ;;          ;;
# Line 932  EOF Line 972  EOF
972          # Use sysv4.2uw... so that sysv4* matches it.          # Use sysv4.2uw... so that sysv4* matches it.
973          echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}          echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
974          exit 0 ;;          exit 0 ;;
975        i*86:OS/2:*:*)
976            # If we were able to find `uname', then EMX Unix compatibility
977            # is probably installed.
978            echo ${UNAME_MACHINE}-pc-os2-emx
979            exit 0 ;;
980        i*86:XTS-300:*:STOP)
981            echo ${UNAME_MACHINE}-unknown-stop
982            exit 0 ;;
983        i*86:atheos:*:*)
984            echo ${UNAME_MACHINE}-unknown-atheos
985            exit 0 ;;
986        i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
987            echo i386-unknown-lynxos${UNAME_RELEASE}
988            exit 0 ;;
989        i*86:*DOS:*:*)
990            echo ${UNAME_MACHINE}-pc-msdosdjgpp
991            exit 0 ;;
992      i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)      i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
993          UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`          UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
994          if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then          if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
# Line 966  EOF Line 1023  EOF
1023                  echo ${UNAME_MACHINE}-pc-sysv32                  echo ${UNAME_MACHINE}-pc-sysv32
1024          fi          fi
1025          exit 0 ;;          exit 0 ;;
     i*86:*DOS:*:*)  
         echo ${UNAME_MACHINE}-pc-msdosdjgpp  
         exit 0 ;;  
1026      pc:*:*:*)      pc:*:*:*)
1027          # Left here for compatibility:          # Left here for compatibility:
1028          # uname -m prints for DJGPP always 'pc', but it prints nothing about          # uname -m prints for DJGPP always 'pc', but it prints nothing about
# Line 995  EOF Line 1049  EOF
1049      mc68k:UNIX:SYSTEM5:3.51m)      mc68k:UNIX:SYSTEM5:3.51m)
1050          echo m68k-convergent-sysv          echo m68k-convergent-sysv
1051          exit 0 ;;          exit 0 ;;
1052        M680?0:D-NIX:5.3:*)
1053            echo m68k-diab-dnix
1054            exit 0 ;;
1055      M68*:*:R3V[567]*:*)      M68*:*:R3V[567]*:*)
1056          test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;          test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1057      3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)      3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0)
1058          OS_REL=''          OS_REL=''
1059          test -r /etc/.relid \          test -r /etc/.relid \
1060          && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`          && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
# Line 1014  EOF Line 1071  EOF
1071      mc68030:UNIX_System_V:4.*:*)      mc68030:UNIX_System_V:4.*:*)
1072          echo m68k-atari-sysv4          echo m68k-atari-sysv4
1073          exit 0 ;;          exit 0 ;;
     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)  
         echo i386-unknown-lynxos${UNAME_RELEASE}  
         exit 0 ;;  
1074      TSUNAMI:LynxOS:2.*:*)      TSUNAMI:LynxOS:2.*:*)
1075          echo sparc-unknown-lynxos${UNAME_RELEASE}          echo sparc-unknown-lynxos${UNAME_RELEASE}
1076          exit 0 ;;          exit 0 ;;
# Line 1098  EOF Line 1152  EOF
1152          echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}          echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1153          exit 0 ;;          exit 0 ;;
1154      *:Darwin:*:*)      *:Darwin:*:*)
1155          echo `uname -p`-apple-darwin${UNAME_RELEASE}          case `uname -p` in
1156                *86) UNAME_PROCESSOR=i686 ;;
1157                powerpc) UNAME_PROCESSOR=powerpc ;;
1158            esac
1159            echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1160          exit 0 ;;          exit 0 ;;
1161      *:procnto*:*:* | *:QNX:[0123456789]*:*)      *:procnto*:*:* | *:QNX:[0123456789]*:*)
1162          UNAME_PROCESSOR=`uname -p`          UNAME_PROCESSOR=`uname -p`
# Line 1134  EOF Line 1192  EOF
1192          fi          fi
1193          echo ${UNAME_MACHINE}-unknown-plan9          echo ${UNAME_MACHINE}-unknown-plan9
1194          exit 0 ;;          exit 0 ;;
     i*86:OS/2:*:*)  
         # If we were able to find `uname', then EMX Unix compatibility  
         # is probably installed.  
         echo ${UNAME_MACHINE}-pc-os2-emx  
         exit 0 ;;  
1195      *:TOPS-10:*:*)      *:TOPS-10:*:*)
1196          echo pdp10-unknown-tops10          echo pdp10-unknown-tops10
1197          exit 0 ;;          exit 0 ;;
# Line 1157  EOF Line 1210  EOF
1210      *:ITS:*:*)      *:ITS:*:*)
1211          echo pdp10-unknown-its          echo pdp10-unknown-its
1212          exit 0 ;;          exit 0 ;;
     i*86:XTS-300:*:STOP)  
         echo ${UNAME_MACHINE}-unknown-stop  
         exit 0 ;;  
     i*86:atheos:*:*)  
         echo ${UNAME_MACHINE}-unknown-atheos  
         exit 0 ;;  
1213  esac  esac
1214    
1215  #echo '(No uname command or uname output not recognized.)' 1>&2  #echo '(No uname command or uname output not recognized.)' 1>&2
# Line 1283  main () Line 1330  main ()
1330  }  }
1331  EOF  EOF
1332    
1333  $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0  $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
 rm -f $dummy.c $dummy && rmdir $tmpdir  
1334    
1335  # Apollos put the system type in the environment.  # Apollos put the system type in the environment.
1336    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26