configure: Clean up the winmm module checks.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2015-11-18 15:03:50 +01:00 committed by Alexandre Julliard
parent b0be9f0b93
commit be78f79eda
2 changed files with 14 additions and 17 deletions

15
configure vendored
View File

@ -8087,6 +8087,7 @@ done
COREAUDIO_LIBS="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI" COREAUDIO_LIBS="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
fi fi
enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-yes}
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="$LIBS $COREAUDIO_LIBS" LIBS="$LIBS $COREAUDIO_LIBS"
for ac_func in AUGraphAddNode for ac_func in AUGraphAddNode
@ -8747,8 +8748,10 @@ $as_echo "$ac_cv_c_dll_unixware" >&6; }
;; ;;
esac esac
enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
enable_wineqtdecoder=${enable_wineqtdecoder:-no} enable_wineqtdecoder=${enable_wineqtdecoder:-no}
enable_winemac_drv=${enable_winemac_drv:-no} enable_winemac_drv=${enable_winemac_drv:-no}
test "$ac_cv_header_linux_joystick_h" = "yes" -o "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
CROSSTARGET="" CROSSTARGET=""
@ -12582,6 +12585,7 @@ if test -z "$PULSE_LIBS"; then :
This is an error since --with-pulse was requested." "$LINENO" 5 ;; This is an error since --with-pulse was requested." "$LINENO" 5 ;;
esac esac
fi fi
test -n "$PULSE_LIBS" || enable_winepulse_drv=${enable_winepulse_drv:-no}
if test "x$with_gstreamer" != "xno" if test "x$with_gstreamer" != "xno"
then then
@ -12801,6 +12805,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi fi
fi fi
test -n "$ALSA_LIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
if test "x$with_oss" != xno if test "x$with_oss" != xno
then then
@ -12834,6 +12839,7 @@ fi
as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported." as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
fi fi
fi fi
test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
if test "x$with_capi" != "xno" if test "x$with_capi" != "xno"
then then
@ -13927,14 +13933,7 @@ _ACEOF
fi fi
fi fi
test -n "$ALSA_LIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no} if test "x$enable_winealsa_drv$enable_winecoreaudio_drv$enable_winepulse_drv$enable_wineoss_drv" = xnononono -a \
test -n "$COREAUDIO_LIBS" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
test -n "$PULSE_LIBS" || enable_winepulse_drv=${enable_winepulse_drv:-no}
test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
test "$ac_cv_header_linux_joystick_h" = "yes" -o "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
if test "x$ALSA_LIBS$COREAUDIO_LIBS$PULSE_LIBS" = "x" -a \
"x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
"x$with_alsa$with_coreaudio$with_oss$with_pulse" != xnononono "x$with_alsa$with_coreaudio$with_oss$with_pulse" != xnononono
then then
as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent." as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."

View File

@ -765,6 +765,7 @@ case $host_os in
dnl CoreServices needed by AudioUnit dnl CoreServices needed by AudioUnit
AC_SUBST(COREAUDIO_LIBS,"-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI") AC_SUBST(COREAUDIO_LIBS,"-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI")
fi fi
enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-yes}
dnl Check for the AUGraphAddNode function dnl Check for the AUGraphAddNode function
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="$LIBS $COREAUDIO_LIBS" LIBS="$LIBS $COREAUDIO_LIBS"
@ -932,8 +933,10 @@ case $host_os in
;; ;;
esac esac
enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
enable_wineqtdecoder=${enable_wineqtdecoder:-no} enable_wineqtdecoder=${enable_wineqtdecoder:-no}
enable_winemac_drv=${enable_winemac_drv:-no} enable_winemac_drv=${enable_winemac_drv:-no}
test "$ac_cv_header_linux_joystick_h" = "yes" -o "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
dnl Check for cross compiler to build test programs dnl Check for cross compiler to build test programs
AC_SUBST(CROSSTARGET,"") AC_SUBST(CROSSTARGET,"")
@ -1448,6 +1451,7 @@ then
fi fi
WINE_NOTICE_WITH(pulse, [test -z "$PULSE_LIBS"], WINE_NOTICE_WITH(pulse, [test -z "$PULSE_LIBS"],
[libpulse ${notice_platform}development files not found or too old, Pulse won't be supported.]) [libpulse ${notice_platform}development files not found or too old, Pulse won't be supported.])
test -n "$PULSE_LIBS" || enable_winepulse_drv=${enable_winepulse_drv:-no}
dnl **** Check for gstreamer **** dnl **** Check for gstreamer ****
if test "x$with_gstreamer" != "xno" if test "x$with_gstreamer" != "xno"
@ -1489,6 +1493,7 @@ then
#endif]], [[snd_pcm_hw_params_get_access_mask(NULL, NULL)]])], #endif]], [[snd_pcm_hw_params_get_access_mask(NULL, NULL)]])],
[ALSA_LIBS="-lasound"])]) [ALSA_LIBS="-lasound"])])
fi fi
test -n "$ALSA_LIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
dnl **** Check for OSSv4 **** dnl **** Check for OSSv4 ****
if test "x$with_oss" != xno if test "x$with_oss" != xno
@ -1510,6 +1515,7 @@ then
WINE_NOTICE([OSS sound system found but too old (OSSv4 needed), OSS won't be supported.]) WINE_NOTICE([OSS sound system found but too old (OSSv4 needed), OSS won't be supported.])
fi fi
fi fi
test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
dnl **** Check for capi4linux **** dnl **** Check for capi4linux ****
if test "x$with_capi" != "xno" if test "x$with_capi" != "xno"
@ -1678,16 +1684,8 @@ then
WINE_CHECK_SONAME(netapi,libnetapi_init,,[AC_DEFINE_UNQUOTED(SONAME_LIBNETAPI,["libnetapi.$LIBEXT"])]) WINE_CHECK_SONAME(netapi,libnetapi_init,,[AC_DEFINE_UNQUOTED(SONAME_LIBNETAPI,["libnetapi.$LIBEXT"])])
fi fi
dnl **** Disable unsupported winmm drivers ****
test -n "$ALSA_LIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
test -n "$COREAUDIO_LIBS" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
test -n "$PULSE_LIBS" || enable_winepulse_drv=${enable_winepulse_drv:-no}
test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
test "$ac_cv_header_linux_joystick_h" = "yes" -o "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
dnl **** Check for any sound system **** dnl **** Check for any sound system ****
if test "x$ALSA_LIBS$COREAUDIO_LIBS$PULSE_LIBS" = "x" -a \ if test "x$enable_winealsa_drv$enable_winecoreaudio_drv$enable_winepulse_drv$enable_wineoss_drv" = xnononono -a \
"x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
"x$with_alsa$with_coreaudio$with_oss$with_pulse" != xnononono "x$with_alsa$with_coreaudio$with_oss$with_pulse" != xnononono
then then
WINE_WARNING([No sound system was found. Windows applications will be silent.]) WINE_WARNING([No sound system was found. Windows applications will be silent.])