Broken PulseAudio configure check

Francois Gouget fgouget at
Tue Nov 3 05:03:30 CST 2015

The PulseAudio configure check is broken:

test -n "$PULSE_LIBS" || enable_winepulse_drv=${enable_winepulse_drv:-no}

WINE_PACKAGE_FLAGS() sets PULSE_LIBS but PULSE_LIBS is not unset even if 
AC_CHECK_LIB() fails. As a result compilation of winepulse.drv is 
enabled even if is missing.

I don't have the 32-bit library so this resulted in a 
compilation error here:

../../tools/winegcc/winegcc -o -B../../tools/winebuild 
-m32 -fasynchronous-unwind-tables -shared winepulse.drv.spec \
  mmdevdrv.o -ldxguid -luuid -lwinmm -luser32 -ladvapi32 -lole32 -lwine \
  ../../libs/port/libwine_port.a -lpulse -lpthread 
/usr/bin/ld: cannot find -lpulse
collect2: error: ld returned 1 exit status
winegcc: gcc failed
Makefile:185: recipe for target '' failed

I also find it strange that all these audio modules are enabled/disabled 
at the end of the file instead of where support is checked.

Also the 'Check for any sound system' should probably not look into the 
internals of audio systems (i.e. check for PULSE_LIBS) and instead only 
rely on the enable_xxx_drv variables which should have been set by then.

Francois Gouget <fgouget at>    
                     Avoid the Gates of Hell - use Linux.

More information about the wine-devel mailing list