mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
alsa: Fix mixer path when running from build tree
The mixer paths are not available in ${builddir} - we need to look in
${srcdir}. This should fix running an in-tree build without make install
as well as alsa-mixer-path-test in make distcheck.
Since the most straightforward way to define PA_SRCDIR was in
Makefile.am, I'm moving PA_BUILDDIR there as well for consistency.
This commit is contained in:
parent
ae559c0724
commit
11d8da83d4
4 changed files with 5 additions and 5 deletions
|
|
@ -1239,8 +1239,6 @@ AC_SUBST(PA_SOEXT, [.so])
|
||||||
AC_SUBST(pulseconfdir, ["${sysconfdir}/pulse"])
|
AC_SUBST(pulseconfdir, ["${sysconfdir}/pulse"])
|
||||||
AX_DEFINE_DIR(PA_DEFAULT_CONFIG_DIR, pulseconfdir, [Location of configuration files])
|
AX_DEFINE_DIR(PA_DEFAULT_CONFIG_DIR, pulseconfdir, [Location of configuration files])
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED(PA_BUILDDIR, "${ac_pwd}/src", [Location of uninstalled binaries])
|
|
||||||
|
|
||||||
#### Mac OSX specific stuff #####
|
#### Mac OSX specific stuff #####
|
||||||
|
|
||||||
AC_ARG_ENABLE(mac-universal,
|
AC_ARG_ENABLE(mac-universal,
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,9 @@ AM_CPPFLAGS = \
|
||||||
-DPA_ALSA_PATHS_DIR=\"$(alsapathsdir)\" \
|
-DPA_ALSA_PATHS_DIR=\"$(alsapathsdir)\" \
|
||||||
-DPA_ALSA_PROFILE_SETS_DIR=\"$(alsaprofilesetsdir)\"
|
-DPA_ALSA_PROFILE_SETS_DIR=\"$(alsaprofilesetsdir)\"
|
||||||
AM_CFLAGS = \
|
AM_CFLAGS = \
|
||||||
$(PTHREAD_CFLAGS)
|
$(PTHREAD_CFLAGS) \
|
||||||
|
-DPA_SRCDIR=\"$(abs_srcdir)\" \
|
||||||
|
-DPA_BUILDDIR=\"$(abs_builddir)\"
|
||||||
AM_CXXFLAGS = $(AM_CFLAGS)
|
AM_CXXFLAGS = $(AM_CFLAGS)
|
||||||
SERVER_CFLAGS = -D__INCLUDED_FROM_PULSE_AUDIO
|
SERVER_CFLAGS = -D__INCLUDED_FROM_PULSE_AUDIO
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2373,7 +2373,7 @@ static int path_verify(pa_alsa_path *p) {
|
||||||
|
|
||||||
static const char *get_default_paths_dir(void) {
|
static const char *get_default_paths_dir(void) {
|
||||||
if (pa_run_from_build_tree())
|
if (pa_run_from_build_tree())
|
||||||
return PA_BUILDDIR "/modules/alsa/mixer/paths/";
|
return PA_SRCDIR "/modules/alsa/mixer/paths/";
|
||||||
else
|
else
|
||||||
return PA_ALSA_PATHS_DIR;
|
return PA_ALSA_PATHS_DIR;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
/* This function was copied from alsa-mixer.c */
|
/* This function was copied from alsa-mixer.c */
|
||||||
static const char *get_default_paths_dir(void) {
|
static const char *get_default_paths_dir(void) {
|
||||||
if (pa_run_from_build_tree())
|
if (pa_run_from_build_tree())
|
||||||
return PA_BUILDDIR "/modules/alsa/mixer/paths/";
|
return PA_SRCDIR "/modules/alsa/mixer/paths/";
|
||||||
else
|
else
|
||||||
return PA_ALSA_PATHS_DIR;
|
return PA_ALSA_PATHS_DIR;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue