added --enable-xopt configure flag