It looks like it is finding c++ in /usr/local/bin. Is that the compiler you want to use? I was assuming you want to use the Sun provided GCC located in /usr/sfw/bin. Try CC=/usr/sfw/bin/gcc CXX=/usr/sfw/bin/g++ ./configure casevh