This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


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

Patch to use CXX_libstdcxx breaks V3



Alexandre --

  2000-11-04  Alexandre Oliva  <aoliva@redhat.com>

	  * acinclude.m4 (CXX): Prevent it from being cached.
	  * aclocal.m4, configure, */Makefile.in: Rebuilt.

This patch will break the V3 build on any platform without g++ already
installed, as far as I can see.

(It certainly breaks it on a virgin Solaris 2.8 system).

The problem is that AC_CHECK_PROGS doesn't deal well with absolute
paths.  The top-level make passes down CXX set to:

  `/foo/bar/objdir/gcc/g++ ...'

AC_CHECK_PROGS used to accept this because that variable had the same
name as the variable being set.  But, now, it iterates through the
PATH, failing to find the long name in any directory on the PATH, and
falls back to (on Solaris) Sun CC.  Chaos results.

I think that adding:

  CXX_libstdcxx=$CXX

right before AC_CHECK_PROGS should fix it; I'm going to try that.

Comments from autoconf experts welcome!

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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