Hi Jiri,
I see what I can do, but it is not easy since the compiler is
set in the Makefile.<arch> files and can be overridden by the user
in MyConfig.mk. The configure script would have to check these files
to get the compiler to be cheched. I'll see if I can make the
check in cint/Module.mk more flexible to include other names
as long as they contain g++.
-- Fons
Jiri Masik wrote:
>
> Fons Rademakers <Fons.Rademakers@cern.ch> writes:
>
> > Hi Thomas,
> >
> > check $ROOTSYS/cint/Module.mk for GCCVERS and make sure that with this
> > compiler you get the number 3. This is downstream used to select the
> > right libstrm.cxx to be compiled (actually gcc3strm.cxx will be used).
> >
> > Cheers, Fons.
> >
> >
> >
> > Thomas Eberl wrote:
> > >
> > > Dear rooters,
> > >
> > > I have a RedHat 7.1 system with the following compiler installed from
> > > the official rpm-package:
> > > [teberl@coeus ~> g++3 -v
>
> Hi Fons,
>
> please would a configure-like test for gcc3 be possible - for example
> to parse output of
>
> int main(){
> int i=0;
> #ifdef __GNUC__
> i = __GNUC__;
> #endif
> printf("%d\n",i);
> return(0);
> }
> which should work for any compiler.
>
> The test in cint/Module.mk has broken the flexibility to specify
> compiler suite by variables in config/Makefile... I think it is quite
> common to have more compilers installed under different names. One has
> to change two files to select the compiler as it is now it
> would be nice if it was governed by a single statement again.
> cheers,
> Jiri
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248
WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:06 MET