wineoss.drv: Add mmdevapi driver.
diff --git a/configure b/configure
index b21b95a..f7f4a97 100755
--- a/configure
+++ b/configure
@@ -11027,6 +11027,33 @@
fi
+if test "$ac_cv_header_sys_soundcard_h" = "yes" -o \
+ "$ac_cv_header_machine_soundcard_h" = "yes" -o \
+ "$ac_cv_header_soundcard_h" = "yes"
+then
+ ac_fn_c_check_type "$LINENO" "oss_sysinfo" "ac_cv_type_oss_sysinfo" "#if defined(HAVE_SYS_SOUNDCARD_H)
+#include <sys/soundcard.h>
+#elif defined(HAVE_MACHINE_SOUNDCARD_H)
+#include <machine/soundcard.h>
+#elif defined(HAVE_SOUNDCARD_H)
+#include <soundcard.h>
+#endif
+"
+if test "x$ac_cv_type_oss_sysinfo" = xyes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_OSS_SYSINFO 1
+_ACEOF
+
+
+fi
+
+ if test "x$ac_cv_type_oss_sysinfo" != xyes
+ then
+ as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
+ fi
+fi
+
if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
then
@@ -12107,15 +12134,11 @@
test -n "$NASLIBS" || enable_winenas_drv=${enable_winenas_drv:-no}
test -n "$ESDLIBS" || enable_wineesd_drv=${enable_wineesd_drv:-no}
test -n "$ac_cv_lib_soname_jack" || enable_winejack_drv=${enable_winejack_drv:-no}
-test "$ac_cv_header_sys_soundcard_h" = "yes" -o \
- "$ac_cv_header_machine_soundcard_h" = "yes" -o \
- "$ac_cv_header_soundcard_h" = "yes" || enable_wineoss_drv=${enable_wineoss_drv:-no}
+test "x$ac_cv_type_oss_sysinfo" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
- "$ac_cv_header_sys_soundcard_h" != "yes" -a \
- "$ac_cv_header_machine_soundcard_h" != "yes" -a \
- "$ac_cv_header_soundcard_h" != "yes" -a \
+ "x$ac_cv_type_oss_sysinfo" != xyes -a \
"x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
then
as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."