~ubuntu-branches/ubuntu/saucy/autoconf/saucy

« back to all changes in this revision

Viewing changes to build-aux/config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2010-08-05 12:01:58 UTC
  • mfrom: (4.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20100805120158-uxt6qovr0gl2pd75
Tags: 2.67-2ubuntu1
* Merge from Debian unstable (LP: #613735), remaining changes:
  - bin/autoreconf.in: Check whether libtoolize supports --install, if it
    does, libtoolize is safe to run at all times since it will not install
    new files unless --install is passed to it as well.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Attempt to guess a canonical system name.
3
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
 
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2009-11-19'
 
7
timestamp='2010-04-03'
8
8
 
9
9
# This file is free software; you can redistribute it and/or modify it
10
10
# under the terms of the GNU General Public License as published by
56
56
GNU config.guess ($timestamp)
57
57
 
58
58
Originally written by Per Bothner.
59
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
60
 
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
59
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
 
60
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
 
61
Software Foundation, Inc.
61
62
 
62
63
This is free software; see the source for copying conditions.  There is NO
63
64
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
91
92
  exit 1
92
93
fi
93
94
 
94
 
trap 'exit 1' 1 2 15
 
95
trap 'exit 1' HUP INT TERM
95
96
 
96
97
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
97
98
# compiler to aid in system detection is discouraged as it requires
105
106
 
106
107
set_cc_for_build='
107
108
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
108
 
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
 
109
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ;
109
110
: ${TMPDIR=/tmp} ;
110
111
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
111
112
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
333
334
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
334
335
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335
336
        exit ;;
 
337
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
 
338
        echo i386-pc-auroraux${UNAME_RELEASE}
 
339
        exit ;;
336
340
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
337
341
        eval $set_cc_for_build
338
342
        SUN_ARCH="i386"