CXXFLAGS screwed up by 'configure'. How come?

Hello,

I am trying to compile OC6.1 on a Gentoo box. I noticed something weird with the configure procedure and I need guidance...

If I run just 'configure', I get the following flags in ros/Makefile
CFLAGS = -DCSFDB -DNO_CXX_EXCEPTION -DLIN -DLININTEL -g -DDEB -D_DEBUG
CXXFLAGS = -DCSFDB -DNO_CXX_EXCEPTION -DLIN -DLININTEL -D_GNU_SOURCE=1 -g -DDEB -D_DEBUG

However, if I call 'configure' as follows:
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-gl-include=/usr/include --with-gl-library=/usr/lib --with-xmu-include=/usr/include/X11 --with-xmu-library=/usr/lib --disable-debug --enable-production --prefix=/opt/OpenCASCADE6.1 --with-tcl=/usr/lib/ --with-tk=/usr/lib/ --with-stlport-library=/usr/lib/ --with-stlport-libname=stlport_gcc --with-stlport-include=/usr/include/stlport --build=i686-pc-linux-gnu

I obtain the following uncomplete flags (see CXXFLAGS)
CFLAGS = -DCSFDB -DNO_CXX_EXCEPTION -DLIN -DLININTEL -DNDEBUG -DNo_Exception -O2
CXXFLAGS = -I/usr/include/stlport -DNDEBUG -DNo_Exception -O2

Can someone explain to me what I did wrong? I am buffled by this one.

Daniel

Tourde's picture

I can add that before configure, I did:
aclocal
autoheader
automake --add-missing
libtoolize --force --copy
autoconf

Tourde's picture

I found the culprit:
--with-stlport-library=/usr/lib/

Still, I do not understand why this was screwing up the configure process and the setup of CXXFLAGS.
If someone can give me a sound explanation....