From patchwork Fri Jan 27 14:10:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 92650 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp252976qgi; Fri, 27 Jan 2017 06:13:14 -0800 (PST) X-Received: by 10.237.34.38 with SMTP id n35mr7539346qtc.253.1485526394011; Fri, 27 Jan 2017 06:13:14 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id m188si3616972qkb.76.2017.01.27.06.13.13; Fri, 27 Jan 2017 06:13:13 -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 A1E81609C2; Fri, 27 Jan 2017 14:13:13 +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 35331609EF; Fri, 27 Jan 2017 14:11:14 +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 BC89F609F2; Fri, 27 Jan 2017 14:11:08 +0000 (UTC) Received: from mail-lf0-f41.google.com (mail-lf0-f41.google.com [209.85.215.41]) by lists.linaro.org (Postfix) with ESMTPS id 90DB66098D for ; Fri, 27 Jan 2017 14:11:02 +0000 (UTC) Received: by mail-lf0-f41.google.com with SMTP id n124so162144790lfd.2 for ; Fri, 27 Jan 2017 06:11:02 -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=lQI6WrZ2bKaMYEZPBZRAxcsgXmE+c1ibl1yFsQYhc5OFzHNkFWITC/plcR/MzQK0RF INH8lTS0dKrZ3ac2M2VSW1lO56ATT3brXsXtiV3eBEWyXDMPErqaFRHM6BfvWYNNbf5l RMs1h15u6WMyG5UROPFYxMDTROHuIdnERSAb44FJyxDUMz7JolKJCVXgAuene0Seem0l iBd8HyWg92Vj7Gin5OVQcDmIGZDds/TYydXeqdBJdA/bEtCp+OptjcGxshEa4+lMmW9G mhzCh8iQkymnUqYrgaI5r5oaIhyRUH4uYhz/+/jq38qM+bYrOakORN+U/+su8vnkAfGr PdlA== X-Gm-Message-State: AIkVDXIH1d8mBklQxpaivVzC66jxkUo+QIykV62Y6b981NDakTfb68txmm6GGmNXbjdsu7QGcRE= X-Received: by 10.25.228.157 with SMTP id x29mr2508839lfi.125.1485526261300; Fri, 27 Jan 2017 06:11:01 -0800 (PST) Received: from localhost.localdomain (ppp109-252-7-40.pppoe.spdop.ru. [109.252.7.40]) by smtp.gmail.com with ESMTPSA id d16sm1346816lfj.28.2017.01.27.06.11.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Jan 2017 06:11:00 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Fri, 27 Jan 2017 17:10:37 +0300 Message-Id: <20170127141037.28375-2-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.11.0.295.gd7dffce In-Reply-To: <20170127141037.28375-1-maxim.uvarov@linaro.org> References: <20170127141037.28375-1-maxim.uvarov@linaro.org> Subject: [lng-odp] [PATCHv2 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. */