/[pcre]/code/trunk/config.guess
ViewVC logotype

Diff of /code/trunk/config.guess

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

revision 63 by nigel, Sat Feb 24 21:40:03 2007 UTC revision 75 by nigel, Sat Feb 24 21:40:37 2007 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, 2004 Free Software Foundation, Inc.
5    
6  timestamp='2002-11-30'  timestamp='2004-07-19'
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 53  version="\ Line 53  version="\
53  GNU config.guess ($timestamp)  GNU config.guess ($timestamp)
54    
55  Originally written by Per Bothner.  Originally written by Per Bothner.
56  Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001  Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
57  Free Software Foundation, Inc.  Free Software Foundation, Inc.
58    
59  This is free software; see the source for copying conditions.  There is NO  This is free software; see the source for copying conditions.  There is NO
# 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     { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
110     { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
111    dummy=$tmp/dummy ;
112    tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
113  case $CC_FOR_BUILD,$HOST_CC,$CC in  case $CC_FOR_BUILD,$HOST_CC,$CC in
114   ,,)    echo "int x;" > $dummy.c ;   ,,)    echo "int x;" > $dummy.c ;
115          for c in cc gcc c89 c99 ; do          for c in cc gcc c89 c99 ; do
# Line 113  case $CC_FOR_BUILD,$HOST_CC,$CC in Line 117  case $CC_FOR_BUILD,$HOST_CC,$CC in
117               CC_FOR_BUILD="$c"; break ;               CC_FOR_BUILD="$c"; break ;
118            fi ;            fi ;
119          done ;          done ;
         rm -f $files ;  
120          if test x"$CC_FOR_BUILD" = x ; then          if test x"$CC_FOR_BUILD" = x ; then
121            CC_FOR_BUILD=no_compiler_found ;            CC_FOR_BUILD=no_compiler_found ;
122          fi          fi
123          ;;          ;;
124   ,,*)   CC_FOR_BUILD=$CC ;;   ,,*)   CC_FOR_BUILD=$CC ;;
125   ,*,*)  CC_FOR_BUILD=$HOST_CC ;;   ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
126  esac ;  esac ;'
 unset files'  
127    
128  # 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.
129  # (ghazi@noc.rutgers.edu 1994-08-24)  # (ghazi@noc.rutgers.edu 1994-08-24)
# Line 195  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 197  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
197          # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.          # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
198          echo "${machine}-${os}${release}"          echo "${machine}-${os}${release}"
199          exit 0 ;;          exit 0 ;;
200        amd64:OpenBSD:*:*)
201            echo x86_64-unknown-openbsd${UNAME_RELEASE}
202            exit 0 ;;
203      amiga:OpenBSD:*:*)      amiga:OpenBSD:*:*)
204          echo m68k-unknown-openbsd${UNAME_RELEASE}          echo m68k-unknown-openbsd${UNAME_RELEASE}
205          exit 0 ;;          exit 0 ;;
206      arc:OpenBSD:*:*)      arc:OpenBSD:*:*)
207          echo mipsel-unknown-openbsd${UNAME_RELEASE}          echo mipsel-unknown-openbsd${UNAME_RELEASE}
208          exit 0 ;;          exit 0 ;;
209        cats:OpenBSD:*:*)
210            echo arm-unknown-openbsd${UNAME_RELEASE}
211            exit 0 ;;
212      hp300:OpenBSD:*:*)      hp300:OpenBSD:*:*)
213          echo m68k-unknown-openbsd${UNAME_RELEASE}          echo m68k-unknown-openbsd${UNAME_RELEASE}
214          exit 0 ;;          exit 0 ;;
215        luna88k:OpenBSD:*:*)
216            echo m88k-unknown-openbsd${UNAME_RELEASE}
217            exit 0 ;;
218      mac68k:OpenBSD:*:*)      mac68k:OpenBSD:*:*)
219          echo m68k-unknown-openbsd${UNAME_RELEASE}          echo m68k-unknown-openbsd${UNAME_RELEASE}
220          exit 0 ;;          exit 0 ;;
# Line 234  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 245  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
245      *:OpenBSD:*:*)      *:OpenBSD:*:*)
246          echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}          echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
247          exit 0 ;;          exit 0 ;;
248        *:ekkoBSD:*:*)
249            echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
250            exit 0 ;;
251        macppc:MirBSD:*:*)
252            echo powerppc-unknown-mirbsd${UNAME_RELEASE}
253            exit 0 ;;
254        *:MirBSD:*:*)
255            echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
256            exit 0 ;;
257      alpha:OSF1:*:*)      alpha:OSF1:*:*)
258          if test $UNAME_RELEASE = "V4.0"; then          case $UNAME_RELEASE in
259            *4.0)
260                  UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`                  UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
261          fi                  ;;
262            *5.*)
263                    UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
264                    ;;
265            esac
266            # According to Compaq, /usr/sbin/psrinfo has been available on
267            # OSF/1 and Tru64 systems produced since 1995.  I hope that
268            # covers most systems running today.  This code pipes the CPU
269            # types through head -n 1, so we only detect the type of CPU 0.
270            ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
271            case "$ALPHA_CPU_TYPE" in
272                "EV4 (21064)")
273                    UNAME_MACHINE="alpha" ;;
274                "EV4.5 (21064)")
275                    UNAME_MACHINE="alpha" ;;
276                "LCA4 (21066/21068)")
277                    UNAME_MACHINE="alpha" ;;
278                "EV5 (21164)")
279                    UNAME_MACHINE="alphaev5" ;;
280                "EV5.6 (21164A)")
281                    UNAME_MACHINE="alphaev56" ;;
282                "EV5.6 (21164PC)")
283                    UNAME_MACHINE="alphapca56" ;;
284                "EV5.7 (21164PC)")
285                    UNAME_MACHINE="alphapca57" ;;
286                "EV6 (21264)")
287                    UNAME_MACHINE="alphaev6" ;;
288                "EV6.7 (21264A)")
289                    UNAME_MACHINE="alphaev67" ;;
290                "EV6.8CB (21264C)")
291                    UNAME_MACHINE="alphaev68" ;;
292                "EV6.8AL (21264B)")
293                    UNAME_MACHINE="alphaev68" ;;
294                "EV6.8CX (21264D)")
295                    UNAME_MACHINE="alphaev68" ;;
296                "EV6.9A (21264/EV69A)")
297                    UNAME_MACHINE="alphaev69" ;;
298                "EV7 (21364)")
299                    UNAME_MACHINE="alphaev7" ;;
300                "EV7.9 (21364A)")
301                    UNAME_MACHINE="alphaev79" ;;
302            esac
303            # A Pn.n version is a patched version.
304          # A Vn.n version is a released version.          # A Vn.n version is a released version.
305          # A Tn.n version is a released field test version.          # A Tn.n version is a released field test version.
306          # A Xn.n version is an unreleased experimental baselevel.          # A Xn.n version is an unreleased experimental baselevel.
307          # 1.2 uses "1.2" for uname -r.          # 1.2 uses "1.2" for uname -r.
308          eval $set_cc_for_build          echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
         cat <<EOF >$dummy.s  
         .data  
 \$Lformat:  
         .byte 37,100,45,37,120,10,0     # "%d-%x\n"  
   
         .text  
         .globl main  
         .align 4  
         .ent main  
 main:  
         .frame \$30,16,\$26,0  
         ldgp \$29,0(\$27)  
         .prologue 1  
         .long 0x47e03d80 # implver \$0  
         lda \$2,-1  
         .long 0x47e20c21 # amask \$2,\$1  
         lda \$16,\$Lformat  
         mov \$0,\$17  
         not \$1,\$18  
         jsr \$26,printf  
         ldgp \$29,0(\$26)  
         mov 0,\$16  
         jsr \$26,exit  
         .end main  
 EOF  
         $CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null  
         if test "$?" = 0 ; then  
                 case `$dummy` in  
                         0-0)  
                                 UNAME_MACHINE="alpha"  
                                 ;;  
                         1-0)  
                                 UNAME_MACHINE="alphaev5"  
                                 ;;  
                         1-1)  
                                 UNAME_MACHINE="alphaev56"  
                                 ;;  
                         1-101)  
                                 UNAME_MACHINE="alphapca56"  
                                 ;;  
                         2-303)  
                                 UNAME_MACHINE="alphaev6"  
                                 ;;  
                         2-307)  
                                 UNAME_MACHINE="alphaev67"  
                                 ;;  
                         2-1307)  
                                 UNAME_MACHINE="alphaev68"  
                                 ;;  
                         3-1307)  
                                 UNAME_MACHINE="alphaev7"  
                                 ;;  
                 esac  
         fi  
         rm -f $dummy.s $dummy && rmdir $tmpdir  
         echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`  
309          exit 0 ;;          exit 0 ;;
310      Alpha\ *:Windows_NT*:*)      Alpha\ *:Windows_NT*:*)
311          # 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?
# Line 321  EOF Line 328  EOF
328      *:OS/390:*:*)      *:OS/390:*:*)
329          echo i370-ibm-openedition          echo i370-ibm-openedition
330          exit 0 ;;          exit 0 ;;
331        *:OS400:*:*)
332            echo powerpc-ibm-os400
333            exit 0 ;;
334      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
335          echo arm-acorn-riscix${UNAME_RELEASE}          echo arm-acorn-riscix${UNAME_RELEASE}
336          exit 0;;          exit 0;;
# Line 338  EOF Line 348  EOF
348      NILE*:*:*:dcosx)      NILE*:*:*:dcosx)
349          echo pyramid-pyramid-svr4          echo pyramid-pyramid-svr4
350          exit 0 ;;          exit 0 ;;
351        DRS?6000:unix:4.0:6*)
352            echo sparc-icl-nx6
353            exit 0 ;;
354      DRS?6000:UNIX_SV:4.2*:7*)      DRS?6000:UNIX_SV:4.2*:7*)
355          case `/usr/bin/uname -p` in          case `/usr/bin/uname -p` in
356              sparc) echo sparc-icl-nx7 && exit 0 ;;              sparc) echo sparc-icl-nx7 && exit 0 ;;
# Line 410  EOF Line 423  EOF
423      *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)      *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
424          echo m68k-unknown-mint${UNAME_RELEASE}          echo m68k-unknown-mint${UNAME_RELEASE}
425          exit 0 ;;          exit 0 ;;
426        m68k:machten:*:*)
427            echo m68k-apple-machten${UNAME_RELEASE}
428            exit 0 ;;
429      powerpc:machten:*:*)      powerpc:machten:*:*)
430          echo powerpc-apple-machten${UNAME_RELEASE}          echo powerpc-apple-machten${UNAME_RELEASE}
431          exit 0 ;;          exit 0 ;;
# Line 450  EOF Line 466  EOF
466  EOF  EOF
467          $CC_FOR_BUILD -o $dummy $dummy.c \          $CC_FOR_BUILD -o $dummy $dummy.c \
468            && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \            && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
469            && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0            && exit 0
         rm -f $dummy.c $dummy && rmdir $tmpdir  
470          echo mips-mips-riscos${UNAME_RELEASE}          echo mips-mips-riscos${UNAME_RELEASE}
471          exit 0 ;;          exit 0 ;;
472      Motorola:PowerMAX_OS:*:*)      Motorola:PowerMAX_OS:*:*)
# Line 535  EOF Line 550  EOF
550                          exit(0);                          exit(0);
551                          }                          }
552  EOF  EOF
553                  $CC_FOR_BUILD -o $dummy $dummy.c && $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  
554                  echo rs6000-ibm-aix3.2.5                  echo rs6000-ibm-aix3.2.5
555          elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then          elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
556                  echo rs6000-ibm-aix3.2.4                  echo rs6000-ibm-aix3.2.4
# Line 635  EOF Line 649  EOF
649                }                }
650  EOF  EOF
651                      (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`                      (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
652                      if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi                      test -z "$HP_ARCH" && HP_ARCH=hppa
                     rm -f $dummy.c $dummy && rmdir $tmpdir  
653                  fi ;;                  fi ;;
654          esac          esac
655            if [ ${HP_ARCH} = "hppa2.0w" ]
656            then
657                # avoid double evaluation of $set_cc_for_build
658                test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
659                if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
660                then
661                    HP_ARCH="hppa2.0w"
662                else
663                    HP_ARCH="hppa64"
664                fi
665            fi
666          echo ${HP_ARCH}-hp-hpux${HPUX_REV}          echo ${HP_ARCH}-hp-hpux${HPUX_REV}
667          exit 0 ;;          exit 0 ;;
668      ia64:HP-UX:*:*)      ia64:HP-UX:*:*)
# Line 672  EOF Line 696  EOF
696            exit (0);            exit (0);
697          }          }
698  EOF  EOF
699          $CC_FOR_BUILD -o $dummy $dummy.c && $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  
700          echo unknown-hitachi-hiuxwe2          echo unknown-hitachi-hiuxwe2
701          exit 0 ;;          exit 0 ;;
702      9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )      9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
# Line 731  EOF Line 754  EOF
754      CRAY*TS:*:*:*)      CRAY*TS:*:*:*)
755          echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'          echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
756          exit 0 ;;          exit 0 ;;
     CRAY*T3D:*:*:*)  
         echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'  
         exit 0 ;;  
757      CRAY*T3E:*:*:*)      CRAY*T3E:*:*:*)
758          echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'          echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
759          exit 0 ;;          exit 0 ;;
760      CRAY*SV1:*:*:*)      CRAY*SV1:*:*:*)
761          echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'          echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
762          exit 0 ;;          exit 0 ;;
763        *:UNICOS/mp:*:*)
764            echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
765            exit 0 ;;
766      F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)      F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
767          FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`          FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
768          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
769          FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`          FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
770          echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"          echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
771          exit 0 ;;          exit 0 ;;
772        5000:UNIX_System_V:4.*:*)
773            FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
774            FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
775            echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
776            exit 0 ;;
777      i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)      i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
778          echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}          echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
779          exit 0 ;;          exit 0 ;;
# Line 756  EOF Line 784  EOF
784          echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}          echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
785          exit 0 ;;          exit 0 ;;
786      *:FreeBSD:*:*)      *:FreeBSD:*:*)
787          # Determine whether the default compiler uses glibc.          echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
         eval $set_cc_for_build  
         sed 's/^        //' << EOF >$dummy.c  
         #include <features.h>  
         #if __GLIBC__ >= 2  
         LIBC=gnu  
         #else  
         LIBC=  
         #endif  
 EOF  
         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`  
         rm -f $dummy.c && rmdir $tmpdir  
         echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}  
788          exit 0 ;;          exit 0 ;;
789      i*:CYGWIN*:*)      i*:CYGWIN*:*)
790          echo ${UNAME_MACHINE}-pc-cygwin          echo ${UNAME_MACHINE}-pc-cygwin
# Line 779  EOF Line 795  EOF
795      i*:PW*:*)      i*:PW*:*)
796          echo ${UNAME_MACHINE}-pc-pw32          echo ${UNAME_MACHINE}-pc-pw32
797          exit 0 ;;          exit 0 ;;
798      x86:Interix*:3*)      x86:Interix*:[34]*)
799          echo i586-pc-interix3          echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
800          exit 0 ;;          exit 0 ;;
801      [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)      [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
802          echo i${UNAME_MACHINE}-pc-mks          echo i${UNAME_MACHINE}-pc-mks
# Line 801  EOF Line 817  EOF
817          echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`          echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
818          exit 0 ;;          exit 0 ;;
819      *:GNU:*:*)      *:GNU:*:*)
820            # the GNU system
821          echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`          echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
822          exit 0 ;;          exit 0 ;;
823        *:GNU/*:*:*)
824            # other systems with GNU libc and userland
825            echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
826            exit 0 ;;
827      i*86:Minix:*:*)      i*86:Minix:*:*)
828          echo ${UNAME_MACHINE}-pc-minix          echo ${UNAME_MACHINE}-pc-minix
829          exit 0 ;;          exit 0 ;;
830      arm*:Linux:*:*)      arm*:Linux:*:*)
831          echo ${UNAME_MACHINE}-unknown-linux-gnu          echo ${UNAME_MACHINE}-unknown-linux-gnu
832          exit 0 ;;          exit 0 ;;
833        cris:Linux:*:*)
834            echo cris-axis-linux-gnu
835            exit 0 ;;
836      ia64:Linux:*:*)      ia64:Linux:*:*)
837          echo ${UNAME_MACHINE}-unknown-linux-gnu          echo ${UNAME_MACHINE}-unknown-linux-gnu
838          exit 0 ;;          exit 0 ;;
839        m32r*:Linux:*:*)
840            echo ${UNAME_MACHINE}-unknown-linux-gnu
841            exit 0 ;;
842      m68*:Linux:*:*)      m68*:Linux:*:*)
843          echo ${UNAME_MACHINE}-unknown-linux-gnu          echo ${UNAME_MACHINE}-unknown-linux-gnu
844          exit 0 ;;          exit 0 ;;
# Line 832  EOF Line 859  EOF
859          #endif          #endif
860  EOF  EOF
861          eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`          eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
         rm -f $dummy.c && rmdir $tmpdir  
862          test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0          test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
863          ;;          ;;
864      mips64:Linux:*:*)      mips64:Linux:*:*)
# Line 852  EOF Line 878  EOF
878          #endif          #endif
879  EOF  EOF
880          eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`          eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
         rm -f $dummy.c && rmdir $tmpdir  
881          test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0          test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
882          ;;          ;;
883      ppc:Linux:*:*)      ppc:Linux:*:*)
# Line 889  EOF Line 914  EOF
914      s390:Linux:*:* | s390x:Linux:*:*)      s390:Linux:*:* | s390x:Linux:*:*)
915          echo ${UNAME_MACHINE}-ibm-linux          echo ${UNAME_MACHINE}-ibm-linux
916          exit 0 ;;          exit 0 ;;
917        sh64*:Linux:*:*)
918            echo ${UNAME_MACHINE}-unknown-linux-gnu
919            exit 0 ;;
920      sh*:Linux:*:*)      sh*:Linux:*:*)
921          echo ${UNAME_MACHINE}-unknown-linux-gnu          echo ${UNAME_MACHINE}-unknown-linux-gnu
922          exit 0 ;;          exit 0 ;;
# Line 946  EOF Line 974  EOF
974          LIBC=gnuaout          LIBC=gnuaout
975          #endif          #endif
976          #endif          #endif
977            #ifdef __dietlibc__
978            LIBC=dietlibc
979            #endif
980  EOF  EOF
981          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  
982          test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0          test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
983          test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0          test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
984          ;;          ;;
# Line 977  EOF Line 1007  EOF
1007      i*86:atheos:*:*)      i*86:atheos:*:*)
1008          echo ${UNAME_MACHINE}-unknown-atheos          echo ${UNAME_MACHINE}-unknown-atheos
1009          exit 0 ;;          exit 0 ;;
1010            i*86:syllable:*:*)
1011            echo ${UNAME_MACHINE}-pc-syllable
1012            exit 0 ;;
1013      i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)      i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1014          echo i386-unknown-lynxos${UNAME_RELEASE}          echo i386-unknown-lynxos${UNAME_RELEASE}
1015          exit 0 ;;          exit 0 ;;
# Line 1046  EOF Line 1079  EOF
1079      M680?0:D-NIX:5.3:*)      M680?0:D-NIX:5.3:*)
1080          echo m68k-diab-dnix          echo m68k-diab-dnix
1081          exit 0 ;;          exit 0 ;;
1082      M68*:*:R3V[567]*:*)      M68*:*:R3V[5678]*:*)
1083          test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;          test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1084      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)      3[345]??:*: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 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1085          OS_REL=''          OS_REL=''
1086          test -r /etc/.relid \          test -r /etc/.relid \
1087          && 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 1146  EOF Line 1179  EOF
1179          echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}          echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1180          exit 0 ;;          exit 0 ;;
1181      *:Darwin:*:*)      *:Darwin:*:*)
1182          echo `uname -p`-apple-darwin${UNAME_RELEASE}          case `uname -p` in
1183                *86) UNAME_PROCESSOR=i686 ;;
1184                powerpc) UNAME_PROCESSOR=powerpc ;;
1185            esac
1186            echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1187          exit 0 ;;          exit 0 ;;
1188      *:procnto*:*:* | *:QNX:[0123456789]*:*)      *:procnto*:*:* | *:QNX:[0123456789]*:*)
1189          UNAME_PROCESSOR=`uname -p`          UNAME_PROCESSOR=`uname -p`
# Line 1159  EOF Line 1196  EOF
1196      *:QNX:*:4*)      *:QNX:*:4*)
1197          echo i386-pc-qnx          echo i386-pc-qnx
1198          exit 0 ;;          exit 0 ;;
1199      NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)      NSR-?:NONSTOP_KERNEL:*:*)
1200          echo nsr-tandem-nsk${UNAME_RELEASE}          echo nsr-tandem-nsk${UNAME_RELEASE}
1201          exit 0 ;;          exit 0 ;;
1202      *:NonStop-UX:*:*)      *:NonStop-UX:*:*)
# Line 1200  EOF Line 1237  EOF
1237      *:ITS:*:*)      *:ITS:*:*)
1238          echo pdp10-unknown-its          echo pdp10-unknown-its
1239          exit 0 ;;          exit 0 ;;
1240        SEI:*:*:SEIUX)
1241            echo mips-sei-seiux${UNAME_RELEASE}
1242            exit 0 ;;
1243        *:DragonFly:*:*)
1244            echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1245            exit 0 ;;
1246        *:*VMS:*:*)
1247            UNAME_MACHINE=`(uname -p) 2>/dev/null`
1248            case "${UNAME_MACHINE}" in
1249                A*) echo alpha-dec-vms && exit 0 ;;
1250                I*) echo ia64-dec-vms && exit 0 ;;
1251                V*) echo vax-dec-vms && exit 0 ;;
1252            esac
1253  esac  esac
1254    
1255  #echo '(No uname command or uname output not recognized.)' 1>&2  #echo '(No uname command or uname output not recognized.)' 1>&2
# Line 1320  main () Line 1370  main ()
1370  }  }
1371  EOF  EOF
1372    
1373  $CC_FOR_BUILD -o $dummy $dummy.c 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  
1374    
1375  # Apollos put the system type in the environment.  # Apollos put the system type in the environment.
1376    

Legend:
Removed from v.63  
changed lines
  Added in v.75

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12