http://bugs.winehq.org/show_bug.cgi?id=26975
--- Comment #10 from Andrew Eikum aeikum@codeweavers.com 2011-05-02 08:58:05 CDT --- Sigh, and of course </etc/oss.conf> doesn't actually contain OSSLIBDIR on my system. Probably a packaging bug.
So, I guess here's the ideal way to do this:
1. Read </etc/oss.conf> and check for its OSSLIBDIR variable. 2.a. If OSSLIBDIR exists, add -I$(OSSLIBDIR) to the wineoss.drv build flags and include <soundcard.h>. 2.b. If OSSLIBDIR doesn't exist, then check for <soundcard.h>, <sys/soundcard.h>, or <machine/soundcard.h>. 3. Verify that SOUND_VERSION is greater than or equal to 0x04.
If 2a, 2b, or 3 fail, then don't build wineoss.drv.