Add support for Meson build system used by Pulseaudio 15 #68
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #58
Pulseaudio 15 uses the Meson build system rather than autotools for configuration. As a result, the pulseaudio
config.h
file is not located in$PULSE_DIR
There is no fixed location for
config.h
when Meson is used - it depends on howmeson build
is actually called.In the course of investigating #58, the following was determined:-
rpmbuild
/mock
,config.h
is in$PULSE_DIR/redhat-linux-build
meson build
on the command line,config.h
is in$PULSE_DIR/build
PKGBUILD
,config.h
is in$PULSE_DIR/../build/
This PR implements the following logic:-
PULSE_CONFIG_DIR
is not defined,./configure
searches forconfig.h
in$PULSE_DIR
down a maximum 3 levels.PULSE_CONFIG_DIR
is defined./configure
expectsconfig.h
to be in the directory$PULSE_CONFIG_DIR/
The search is adequate to support existing autotools functionality, F35 and a basic call to
meson build
. For these distros the build interface is the same.If the search does not locate
config.h
(i.e. Manjaro/Arch and probably others), the location can be specified explicitly.Additionally a warning is now generated if PULSE_DIR is defined but does not appear to be correct.