ngspice: pass X build flags explicitly

ngspice's configure needs --without-x to stop trying to link to X
libraries, but also needs --with-x to actually include X support.

Closes #32403.