filter_objs := @filter_objs@
gui_objs := @gui_objs@
audioc_objs := @audioc_objs@
-mixer_objs := @mixer_objs@
write_objs := @write_objs@
afh_objs := @afh_objs@
play_objs := @play_objs@
audiod_objs += resample_filter.o check_wav.o
endif
endif
+ifneq ($(HAVE_OSS)-$(HAVE_ALSA),no-no)
+ mixer_objs := $(addsuffix .o, mixer exec string fd time lsu version)
+ ifeq ($(HAVE_OSS),yes)
+ mixer_objs += oss_mix.o
+ endif
+ ifeq ($(HAVE_ALSA),yes)
+ mixer_objs += alsa_mix.o
+ endif
+endif
# sort removes duplicate words, which is all we need here
all_objs := $(sort $(recv_objs) $(filter_objs) $(client_objs) $(gui_objs) \
if test $HAVE_OSS = yes -o $HAVE_ALSA = yes; then
build_mixer="yes"
executables="$executables mixer"
- mixer_objs="mixer exec string fd time lsu version"
- if test $HAVE_OSS = yes; then
- mixer_objs="$mixer_objs oss_mix"
- fi
- if test $HAVE_ALSA = yes; then
- mixer_objs="$mixer_objs alsa_mix"
- fi
- AC_SUBST(mixer_objs, add_dot_o($mixer_objs))
-else
- build_mixer="no"
- AC_MSG_WARN([no mixer support])
fi
########################################################################### gui
if test $HAVE_CURSES = yes; then