This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Top-level configure.in patch


The ChangeLog entry for this patch ought to provide sufficient
explanation.  I have tested this with a wide variety of shells.  Okay
to commit?

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.

Index: configure.in
===================================================================
RCS file: /cvs/cvsfiles/devo/configure.in,v
retrieving revision 1.728
diff -u -c -r1.728 configure.in
*** configure.in	2001/09/13 13:28:37	1.728
--- configure.in	2001/09/19 03:53:16
***************
*** 1506,1512 ****
  case "${host}" in
    sparc-sun-solaris2*)
        CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
!       if [ "`/usr/bin/which $CCBASE`" = "/usr/ucb/cc" ] ; then
            could_use=
            [ -d /opt/SUNWspro/bin ] && could_use="/opt/SUNWspro/bin"
            if [ -d /opt/cygnus/bin ] ; then
--- 1506,1512 ----
  case "${host}" in
    sparc-sun-solaris2*)
        CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
!       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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]