https://bugs.winehq.org/show_bug.cgi?id=40784
--- Comment #10 from Andrew Eikum aeikum@codeweavers.com --- (In reply to Andrew Eikum from comment #9)
(In reply to Janek from comment #8)
I installed openal-soft 1.14 on my system in /usr/local so that it doesn't conflict with 1.12 version installed from packages. How do I tell wine where to look for the locally installed library and its development files?
Did it install a pkg-config pc file someplace? You could point to that instead with PKG_CONFIG_PATH before running configure.
After building, you may also need to use LD_LIBRARY_PATH at runtime to ensure it uses the correct openal libraries.