aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorJason Molenda <crash@cygnus>1996-04-05 16:32:37 +0000
committerJason Molenda <crash@cygnus>1996-04-05 16:32:37 +0000
commite94c0e40b2d713f4bce23a4b4affcd92cd923c5c (patch)
tree172c19d22e7a2f2a06eb13a4f43646f2fa75b7c6 /configure.in
parenteb40ca932e7a3edb33001ed552438eabb27d0243 (diff)
downloadfsf-binutils-gdb-e94c0e40b2d713f4bce23a4b4affcd92cd923c5c.zip
fsf-binutils-gdb-e94c0e40b2d713f4bce23a4b4affcd92cd923c5c.tar.gz
fsf-binutils-gdb-e94c0e40b2d713f4bce23a4b4affcd92cd923c5c.tar.bz2
* configure.in (host==solaris): Pass only the first word of $CC
to /usr/bin/which when checking if we're using /usr/ccs/bin/cc. /usr/ucb/which on Solaris barfs out an error if $CC is set to seomthing like "cc -xcg92" or "gcc -mv8". It is harmless, but it looks bad.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index c668cc4..534999c 100644
--- a/configure.in
+++ b/configure.in
@@ -693,7 +693,8 @@ rm -f conftest*
# The Solaris /usr/ucb/cc compiler does not appear to work.
case "${host}" in
sparc-sun-solaris2*)
- if [ "`/usr/bin/which ${CC-cc}`" = "/usr/ucb/cc" ] ; then
+ CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
+ if [ "`/usr/bin/which $CCBASE`" = "/usr/ucb/cc" ] ; then
could_use=
[ -d /opt/SUNWspro/bin ] && could_use="/opt/SUNWspro/bin"
if [ -d /opt/cygnus/bin ] ; then