This involves saving config-host.h while we rerun config and
regenerate it, putting the saved version back, and then installing
the new version only if it has changed.
rm -f $target/config.mak
rm -f config-host.mak
+mv config-host.h config-host.h~
+
./configure --disable-curses "$@" --prefix=/usr
target=i386-dm
sed -e 's,qemu,xen/qemu,' config-host.h >config-host.h.new
echo '#include "xen-config-host.h"' >>config-host.h.new
-mv config-host.h.new config-host.h
+
+mv config-host.h~ config-host.h
+cmp -s config-host.h.new config-host.h || mv config-host.h.new config-host.h