mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-23 05:39:20 +08:00
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
This commit is contained in:
parent
784d7cce85
commit
1dc4a75000
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user