It's tricky (meaning should be documented) but you can.
./waf configure --prefix=`pwd`/../../build --enable-static --enable-opt --prefix=$INSTALLDIR --with-ns3=$INSTALLDIR --with-elf-loader=$INSTALLDIR/lib --enable-kernel-stack=`pwd`/../net-next-sim-2.6.36/arch