From: Ben Elliston Date: Wed, 19 Sep 2001 06:07:36 +0000 (+0000) Subject: 2001-09-19 Ben Elliston X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f6a59e5ff68ceea037f30ea6f0650a721cf9ab8;p=binutils-gdb.git 2001-09-19 Ben Elliston * 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. --- diff --git a/ChangeLog b/ChangeLog index 50f1c99bcae..567553d259a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-09-19 Ben Elliston + + * 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-09-15 Thiemo Seufer * config.sub: Reverted the earlier change, this version is not the diff --git a/configure.in b/configure.in index 6b7a0cd43f5..4102e594b5d 100644 --- a/configure.in +++ b/configure.in @@ -1212,7 +1212,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