summaryrefslogtreecommitdiff
path: root/config.guess
diff options
context:
space:
mode:
authorsveinse <sveinse@138bc75d-0d04-0410-961f-82ee72b054a4>2002-12-17 10:01:10 +0000
committersveinse <sveinse@138bc75d-0d04-0410-961f-82ee72b054a4>2002-12-17 10:01:10 +0000
commit462c28fa8da07f7fcaf9f570df01c31d67150fb9 (patch)
tree4c18d1cc2ab2bd421da29e065d7dcae0eca23bf4 /config.guess
parentb112fabcd09ee13e45491076fb6f8e46da88608e (diff)
downloadgcc-462c28fa8da07f7fcaf9f570df01c31d67150fb9.tar.gz
* config.sub: Import from master repository
* config.guess: Ditto git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60207 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config.guess')
-rwxr-xr-xconfig.guess15
1 files changed, 13 insertions, 2 deletions
diff --git a/config.guess b/config.guess
index 9b1384be4b1..b1ed94fa63c 100755
--- a/config.guess
+++ b/config.guess
@@ -3,7 +3,7 @@
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002 Free Software Foundation, Inc.
-timestamp='2002-11-30'
+timestamp='2002-12-11'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -635,10 +635,21 @@ EOF
}
EOF
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
- if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
+ test -z "$HP_ARCH" && HP_ARCH=hppa
rm -f $dummy.c $dummy && rmdir $tmpdir
fi ;;
esac
+ if [ ${HP_ARCH} = "hppa2.0w" ]
+ then
+ # avoid double evaluation of $set_cc_for_build
+ test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
+ then
+ HP_ARCH="hppa2.0w"
+ else
+ HP_ARCH="hppa64"
+ fi
+ fi
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
exit 0 ;;
ia64:HP-UX:*:*)