From patchwork Fri Jan 27 15:19:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 92668 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp283549qgi; Fri, 27 Jan 2017 07:20:57 -0800 (PST) X-Received: by 10.200.48.206 with SMTP id w14mr8795228qta.50.1485530457676; Fri, 27 Jan 2017 07:20:57 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g22si3716638qkh.329.2017.01.27.07.20.57; Fri, 27 Jan 2017 07:20:57 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 11CED60D68; Fri, 27 Jan 2017 15:20:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 0FBEA60D6E; Fri, 27 Jan 2017 15:19:47 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 1B38860D68; Fri, 27 Jan 2017 15:19:42 +0000 (UTC) Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by lists.linaro.org (Postfix) with ESMTPS id 51EDE60D42 for ; Fri, 27 Jan 2017 15:19:40 +0000 (UTC) Received: by mail-lf0-f46.google.com with SMTP id v186so163585011lfa.1 for ; Fri, 27 Jan 2017 07:19:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=neT3x7v4jmyywDJXpyDsZNSOGItik+aBYyHOsVHjHa8=; b=WpLUBjeUeIUCAhXnDi65OnoJ3xgDF8E19LpzUTgxyGiyXVv9mzyzFYVPMZoEtoHfPz +Tfm0Z+SHMkMWBp432aGbPNVmRGXHYPXJCBnRORaPhu2mz08dNppE+MkZaHlfIS97qzr z+M4tQfIvsncFdMa6eTIUP3kVzzQj8NrvxTrV3LBaaMqFQ8FkZnjv34vQpC18fvZOjSc ai87sVyiEI+zk8zcKphpV3XFJboPBYVQWHC7l3WTCA5Uy4YYnxUyHm3hm3J1pS+ujFc3 Wp/6sS+ke0+Jrh5Px36lQ8vsDoQYxqtK/PmmJRkdkmOZA/e7G/fR7svX/nmMRu6q9JDx GJlw== X-Gm-Message-State: AIkVDXKI9UILEDNlfPqU6jnPNyKVzLHh4nMWtgAB6VDTQYZEzW3yEmuHJWsq9frOwtfagczWVFs= X-Received: by 10.25.145.89 with SMTP id y25mr3087530lfj.102.1485530379111; Fri, 27 Jan 2017 07:19:39 -0800 (PST) Received: from localhost.localdomain (ppp109-252-7-40.pppoe.spdop.ru. [109.252.7.40]) by smtp.gmail.com with ESMTPSA id 206sm1372846ljf.35.2017.01.27.07.19.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Jan 2017 07:19:38 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Fri, 27 Jan 2017 18:19:15 +0300 Message-Id: <20170127151915.16510-2-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.11.0.295.gd7dffce In-Reply-To: <20170127151915.16510-1-maxim.uvarov@linaro.org> References: <20170127151915.16510-1-maxim.uvarov@linaro.org> Subject: [lng-odp] [PATCHv3 2/2] configure.ac: helper: print debug config option X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Add debug pritn config option for helper and do not drop configure options for building helper. Signed-off-by: Maxim Uvarov --- configure.ac | 10 ++++++++++ helper/Makefile.am | 2 +- helper/odph_debug.h | 4 ---- 3 files changed, 11 insertions(+), 5 deletions(-) -- 2.11.0.295.gd7dffce diff --git a/configure.ac b/configure.ac index 2cf65363..daa9b310 100644 --- a/configure.ac +++ b/configure.ac @@ -245,6 +245,16 @@ AC_ARG_ENABLE([debug-print], fi]) ODP_CFLAGS="$ODP_CFLAGS -DODP_DEBUG_PRINT=$ODP_DEBUG_PRINT" +ODPH_DEBUG_PRINT=0 +AC_ARG_ENABLE([helper-debug-print], + [ --enable-helper-debug-print display helper debugging information], + [if test "x$enableval" = "xyes"; then + ODPH_DEBUG_PRINT=1 + else + ODPH_DEBUG_PRINT=0 + fi]) +ODP_CFLAGS="$ODP_CFLAGS -DODPH_DEBUG_PRINT=$ODPH_DEBUG_PRINT" + ########################################################################## # Enable/disable ODP_DEBUG ########################################################################## diff --git a/helper/Makefile.am b/helper/Makefile.am index 4d24a691..d484679d 100644 --- a/helper/Makefile.am +++ b/helper/Makefile.am @@ -4,7 +4,7 @@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = $(top_builddir)/pkgconfig/libodphelper-linux-generic.pc LIB = $(top_builddir)/lib -AM_CFLAGS = -I$(srcdir)/include +AM_CFLAGS += -I$(srcdir)/include AM_CFLAGS += -I$(top_srcdir)/platform/@with_platform@/include AM_CFLAGS += -I$(top_srcdir)/include AM_CFLAGS += -I$(top_builddir)/platform/@with_platform@/include diff --git a/helper/odph_debug.h b/helper/odph_debug.h index 9c216cd1..36c743c2 100644 --- a/helper/odph_debug.h +++ b/helper/odph_debug.h @@ -19,10 +19,6 @@ extern "C" { #endif -#ifndef ODPH_DEBUG_PRINT -#define ODPH_DEBUG_PRINT 1 -#endif - /** * log level. */