[PATCH] configure: Fix compilation for systems without libpulse

Andrew Eikum aeikum at codeweavers.com
Tue Nov 3 07:00:22 CST 2015


Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
---

Sorry about that, Francois. I think this will fix it. I took your
suggestion to use enable_winepulse_drv instead of PULSE_LIBS in the
later section.

 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 07b9c5a..e4cdd8f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1559,6 +1559,7 @@ then
 fi
 WINE_NOTICE_WITH(pulse, [test "$ac_cv_lib_pulse_pa_stream_is_corked" != "yes"],
         [libpulse ${notice_platform}development files not found or too old, Pulse won't be supported.])
+test "x$ac_cv_lib_pulse_pa_stream_is_corked" = xyes || enable_winepulse_drv=${enable_winepulse_drv:-no}
 
 dnl **** Check for gstreamer ****
 if test "x$with_gstreamer" != "xno"
@@ -1792,12 +1793,11 @@ 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 ****
-if test "x$ALSA_LIBS$COREAUDIO_LIBS$PULSE_LIBS" = "x" -a \
+if test "x$ALSA_LIBS$COREAUDIO_LIBS$enable_winepulse_drv" = "xno" -a \
         "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
         "x$with_alsa$with_coreaudio$with_oss$with_pulse" != xnononono
 then
-- 
2.6.2




More information about the wine-patches mailing list