]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - configure
Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-3.1-pull-request...
[thirdparty/qemu.git] / configure
index 1d267b49cc32e7958764218dfce9b54779068089..c3da1a2587b9d09dd4504e4ee17b1a4882bf8762 100755 (executable)
--- a/configure
+++ b/configure
@@ -4202,7 +4202,14 @@ if compile_prog "" "" ; then
   memfd=yes
 fi
 
-
+# check for usbfs
+have_usbfs=no
+if test "$linux_user" = "yes"; then
+  if check_include linux/usbdevice_fs.h; then
+    have_usbfs=yes
+  fi
+  have_usbfs=yes
+fi
 
 # check for fallocate
 fallocate=no
@@ -6325,6 +6332,9 @@ fi
 if test "$memfd" = "yes" ; then
   echo "CONFIG_MEMFD=y" >> $config_host_mak
 fi
+if test "$have_usbfs" = "yes" ; then
+  echo "CONFIG_USBFS=y" >> $config_host_mak
+fi
 if test "$fallocate" = "yes" ; then
   echo "CONFIG_FALLOCATE=y" >> $config_host_mak
 fi