move logic from --with-* to more appropriate --enable