Under at least OpenMPI, configure.ac doesn't automatically set CXXFLAGS to -g -O3 as it should. The result is that a naive configure doesn't result in optimized code.