diff options
author | Ben Elliston <bje@redhat.com> | 2001-09-19 06:07:00 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2001-09-19 16:07:00 +1000 |
commit | 1dc4a75000832ba7536465311d808d6b6ff9e6f3 (patch) | |
tree | be9ddc365813c534d6fab8f763afb7788761b579 | |
parent | 784d7cce8585df1b850cec5d33d582a83c72459e (diff) | |
download | gcc-1dc4a75000832ba7536465311d808d6b6ff9e6f3.zip gcc-1dc4a75000832ba7536465311d808d6b6ff9e6f3.tar.gz gcc-1dc4a75000832ba7536465311d808d6b6ff9e6f3.tar.bz2 |
configure.in (sparc-sun-solaris2*): Don't use /usr/bin/which on Solaris when testing for the /usr/ucb/cc compiler...
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.
From-SVN: r45687
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.in | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +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. + 2001-08-31 Alexandre Oliva <aoliva@redhat.com> Merged from gcc-3_0-branch: diff --git a/configure.in b/configure.in index e0e5c28..0ccd7ad 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 |