$NetBSD$

--- ioemu/configure.orig	2008-08-01 14:38:07.000000000 +0000
+++ ioemu/configure
@@ -591,17 +591,17 @@ fi
 mandir="$prefix"
 datadir="$prefix"
 docdir="$prefix"
-bindir="$prefix"
-configdir=""
+bindir="$prefix/libexec"
+configdir="@XENDCONFDIR@"
 else
 if test -z "$prefix" ; then
     prefix="/usr/local"
 fi
-mandir="$prefix/share/man"
+mandir="$prefix/man"
 datadir="$prefix/share/xen/qemu"
 docdir="$prefix/share/doc/qemu"
-bindir="$prefix/$libdir/xen/bin"
-configdir="/etc/xen"
+bindir="$prefix/libexec"
+configdir="@XENDCONFDIR@"
 fi
 
 if test "$stubdom" = "yes"; then
@@ -744,6 +744,8 @@ if test "$mingw32" = "yes" ; then
   echo "#define CONFIG_WIN32 1" >> $config_h
 elif test -f "/usr/include/byteswap.h" ; then
   echo "#define HAVE_BYTESWAP_H 1" >> $config_h
+elif test -f "/usr/include/machine/bswap.h" ; then
+  echo "#define HAVE_MACHINE_BSWAP_H 1" >> $config_h
 fi
 if test "$darwin" = "yes" ; then
   echo "CONFIG_DARWIN=yes" >> $config_mak
