From patchwork Mon Nov 14 10:50:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takashi Iwai X-Patchwork-Id: 9427213 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DA8FC60476 for ; Mon, 14 Nov 2016 11:02:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C918228841 for ; Mon, 14 Nov 2016 11:02:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB51E28850; Mon, 14 Nov 2016 11:02:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32C8228841 for ; Mon, 14 Nov 2016 11:02:12 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id D8C08266AA3; Mon, 14 Nov 2016 12:02:10 +0100 (CET) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 607A8266B5F; Mon, 14 Nov 2016 11:59:52 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 04C05266AA3; Mon, 14 Nov 2016 11:50:45 +0100 (CET) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 477D8265DF3 for ; Mon, 14 Nov 2016 11:50:40 +0100 (CET) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4E03CABD3 for ; Mon, 14 Nov 2016 10:50:40 +0000 (UTC) From: Takashi Iwai To: alsa-devel@alsa-project.org Date: Mon, 14 Nov 2016 11:50:39 +0100 Message-Id: <20161114105039.11111-1-tiwai@suse.de> X-Mailer: git-send-email 2.10.2 Subject: [alsa-devel] [PATCH] mixer: Don't install smixer modules unless python is enabled X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Currently the whole smixer stuff depends on python, so it doesn't make sense to install plugins partially when the python support is disabled. This patch changes Makefile.am not to install the smixer stuff at all when the python support is disabled via configure script. Signed-off-by: Takashi Iwai --- modules/mixer/simple/Makefile.am | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/mixer/simple/Makefile.am b/modules/mixer/simple/Makefile.am index cb64ee8ca665..c21dd07d5180 100644 --- a/modules/mixer/simple/Makefile.am +++ b/modules/mixer/simple/Makefile.am @@ -1,3 +1,4 @@ +if BUILD_PYTHON alsaplugindir = @ALSA_PLUGIN_DIR@ pkglibdir = $(alsaplugindir)/smixer @@ -9,9 +10,7 @@ pkglib_LTLIBRARIES = smixer-sbase.la \ smixer-ac97.la \ smixer-hda.la -if BUILD_PYTHON pkglib_LTLIBRARIES += smixer-python.la -endif noinst_HEADERS = sbase.h @@ -27,7 +26,6 @@ smixer_hda_la_SOURCES = hda.c sbasedl.c smixer_hda_la_LDFLAGS = -module -avoid-version $(LDFLAGS_NOUNDEFINED) smixer_hda_la_LIBADD = ../../../src/libasound.la -ldl -if BUILD_PYTHON smixer_python_la_SOURCES = python.c smixer_python_la_LDFLAGS = -module -avoid-version $(LDFLAGS_NOUNDEFINED) smixer_python_la_CFLAGS = $(PYTHON_INCLUDES)