-echo "Step ${STEP}/${NSTEPS} - Building with java=${buildjava}, debug=${builddebug}, SMPI=${buildsmpi}, MC=${buildmc}"
-cmake -Denable_documentation=OFF -Denable_lua=ON -Denable_java=${buildjava} \
- -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON \
- -Denable_jedule=ON -Denable_mallocators=ON -Denable_debug=${builddebug} \
+if [ "${builddebug}/${buildsmpi}/${buildmc}" = "ON/ON/ON" ]; then
+ # ${buildmc}=ON because "why not", and especially because it doesn't
+ # compile with -D_GLIBCXX_DEBUG and -Denable_ns3=ON together
+ export CXXFLAGS=-D_GLIBCXX_DEBUG
+ runtests="ON"
+else
+ runtests="OFF"
+fi
+
+cmake -Denable_documentation=OFF \
+ -Denable_compile_optimizations=${runtests} -Denable_compile_warnings=ON \
+ -Denable_mallocators=ON -Denable_debug=${builddebug} \