configure.ac: build extra mixer modules conditionally

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2017-11-27 21:38:18 +01:00
parent c051036e17
commit fab28ba1b1
4 changed files with 56 additions and 14 deletions

View file

@ -1,4 +1,3 @@
if BUILD_PYTHON
alsaplugindir = @ALSA_PLUGIN_DIR@
pkglibdir = $(alsaplugindir)/smixer
@ -6,11 +5,17 @@ AM_CFLAGS = -g -O2 -W -Wall
AM_CPPFLAGS=-I$(top_srcdir)/include
pkglib_LTLIBRARIES = smixer-sbase.la \
smixer-ac97.la \
smixer-hda.la
pkglib_LTLIBRARIES =
if BUILD_MIXER_MODULES
pkglib_LTLIBRARIES += smixer-sbase.la \
smixer-ac97.la \
smixer-hda.la
endif
if BUILD_MIXER_PYMODULES
pkglib_LTLIBRARIES += smixer-python.la
endif
noinst_HEADERS = sbase.h
@ -30,4 +35,3 @@ smixer_python_la_SOURCES = python.c
smixer_python_la_LDFLAGS = -module -avoid-version $(LDFLAGS_NOUNDEFINED)
smixer_python_la_CFLAGS = $(PYTHON_INCLUDES)
smixer_python_la_LIBADD = ../../../src/libasound.la $(PYTHON_LIBS)
endif