aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2001-09-19 06:07:36 +0000
committerBen Elliston <bje@au.ibm.com>2001-09-19 06:07:36 +0000
commit8f6a59e5ff68ceea037f30ea6f0650a721cf9ab8 (patch)
tree2d702514cc847473e6e07458b0493e5f31e15063 /configure.in
parent3882b010780ca1aa1ed5d7b38e936cd2d6d5486b (diff)
downloadgdb-8f6a59e5ff68ceea037f30ea6f0650a721cf9ab8.zip
gdb-8f6a59e5ff68ceea037f30ea6f0650a721cf9ab8.tar.gz
gdb-8f6a59e5ff68ceea037f30ea6f0650a721cf9ab8.tar.bz2
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.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 6b7a0cd..4102e59 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