diff options
author | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-19 06:07:00 +0000 |
---|---|---|
committer | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-19 06:07:00 +0000 |
commit | 471c8d6fa3a1dede2c1ed1f9e0838bf90011e5f4 (patch) | |
tree | be9ddc365813c534d6fab8f763afb7788761b579 /configure.in | |
parent | 7eac52a162833d42fe95635583691183dfac2a12 (diff) | |
download | gcc-471c8d6fa3a1dede2c1ed1f9e0838bf90011e5f4.tar.gz |
2001-09-19 Ben Elliston <bje@redhat.com>
* configure.in (sparc-sun-solaris2*): Don't use /usr/bin/which on
Solaris when testing for the /usr/ucb/cc compiler; it has incorrect
semantics. Use the shell built-in "type" command instead.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45687 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in index e0e5c2845d0..0ccd7ada594 100644 --- a/configure.in +++ b/configure.in @@ -1295,7 +1295,7 @@ rm -f conftest* case "${host}" in sparc-sun-solaris2*) CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" - if [ "`/usr/bin/which $CCBASE`" = "/usr/ucb/cc" ] ; then + if [ "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ] ; then could_use= [ -d /opt/SUNWspro/bin ] && could_use="/opt/SUNWspro/bin" if [ -d /opt/cygnus/bin ] ; then |