]> gcc.gnu.org Git - gcc.git/commitdiff
configure.in (sparc-sun-solaris2*): Don't use /usr/bin/which on Solaris when testing...
authorBen Elliston <bje@redhat.com>
Wed, 19 Sep 2001 06:07:00 +0000 (06:07 +0000)
committerBen Elliston <bje@gcc.gnu.org>
Wed, 19 Sep 2001 06:07:00 +0000 (16:07 +1000)
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

ChangeLog
configure.in

index e504ba73cbfa6e675c3b211a389d7c8f05ffe7f8..877812fb72f7757a76f0155b461c12d76dc9bc6f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index e0e5c2845d0ce96c45c44d933617071ed2e843ff..0ccd7ada594c451b869d12b24ef5dc175ef1d738 100644 (file)
@@ -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
This page took 0.163755 seconds and 5 git commands to generate.