From patchwork Wed Aug 30 13:00:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 111309 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp890477qge; Wed, 30 Aug 2017 06:04:09 -0700 (PDT) X-Google-Smtp-Source: ADKCNb4qVz95KPIJKw+rDy5luL95mzGN7oVBawAPqk7L6p4JgNt9WWjFfSU9zCR5A++JoNM/R4XA X-Received: by 10.55.21.166 with SMTP id 38mr4439999qkv.290.1504098249756; Wed, 30 Aug 2017 06:04:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504098249; cv=none; d=google.com; s=arc-20160816; b=aHmECjhY2sCmHUjzU2T1mqvdhl7I6AqN17xIvao2L/gJb0NW5YiIsEfs5XTwnEuU27 k3mv2ZQ2z4YOtpFWIxUj/DEBlVkDXgm4C4o4H/IRvME0j8UcN3Xs2/km8cVpPPcalecb BN1ZqLairq3aAIXRMpZvI+4pIINIG1RyPAx+t0WzrP/i1BI+QUJAratiHjbYM+aFzzD1 /ITLd1e7WFPhkvv4rNx91eujnj1SFDEG9L6R1/efaPRmrcjSMx4U4pcTt1TWyrJOFrC1 o0biJ9OhsbH6JJ88j3FZM1eTvn75bDZrgYdU59K2XccV5BJ8k0ecA+lHERazyxKEB0G0 rH2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=vrhqwOiHkKZEu/4xcXJQcYsADx2RBJ2p1nuWfrZKP4Q=; b=SBXPI0pU4gfIInaletDYRXOq8vR62DvjIrvjAZmi1eKZZ7xFz+cm9uoYuOJGULNn3d eBzTVMekYB3JMQHPcfrDeRlg3aqmPm8vrCI0BMBUCrUVyL8hCgOedxD9uWb5RgWHiXYj +dOiTgtFr9QeeMC/FN2TEHG52euQKw7UKfe8koPrEATwCsw7DAgKhUXtlHesbPSpN373 4FDdSaWlVXpuMKO5Qa4y4WJfBj7UkGyksbpicqYkgDRrMyWbHeKKue1clt8SpkIpIAO5 AyXX1A99VZpdfVQNEstbRhP1YZ8fITrJNaobp5K3YHkNyvQh4Qz1N1PlWQ4LOmj5Qx0T 7jgA== ARC-Authentication-Results: i=1; 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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 98si5161405qtb.448.2017.08.30.06.04.09; Wed, 30 Aug 2017 06:04:09 -0700 (PDT) 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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 1962561DE2; Wed, 30 Aug 2017 13:04:09 +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,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,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 6CF2662AE3; Wed, 30 Aug 2017 13:01:18 +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 53C9B618C8; Wed, 30 Aug 2017 13:00:41 +0000 (UTC) Received: from forward1j.cmail.yandex.net (forward1j.cmail.yandex.net [5.255.227.19]) by lists.linaro.org (Postfix) with ESMTPS id 07FD161DE2 for ; Wed, 30 Aug 2017 13:00:34 +0000 (UTC) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [37.140.190.29]) by forward1j.cmail.yandex.net (Yandex) with ESMTP id 617D32179C for ; Wed, 30 Aug 2017 16:00:32 +0300 (MSK) Received: from smtp4o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp4o.mail.yandex.net (Yandex) with ESMTP id E3A906C00CCF for ; Wed, 30 Aug 2017 16:00:31 +0300 (MSK) Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id pn21Hwqvkv-0Uv0mONf; Wed, 30 Aug 2017 16:00:30 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 30 Aug 2017 16:00:10 +0300 Message-Id: <1504098014-29411-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1504098014-29411-1-git-send-email-odpbot@yandex.ru> References: <1504098014-29411-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 155 Subject: [lng-odp] [PATCH v3 4/8] configure: provide a way to enable all debugging options at once 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" From: Dmitry Eremin-Solenikov Adding --enable-debug=full to configure will enable all debugging options. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 155 (lumag:improve-build-2) ** https://github.com/Linaro/odp/pull/155 ** Patch: https://github.com/Linaro/odp/pull/155.patch ** Base sha: 7508c5ac906bb7cb1d339b4c5e924f3a18e504ca ** Merge commit sha: 1488a0e31aecd1fa958bf32f1c0ca0b0e0f56409 **/ configure.ac | 45 +++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/configure.ac b/configure.ac index dcf14629..df0a0f61 100644 --- a/configure.ac +++ b/configure.ac @@ -239,39 +239,40 @@ DX_INIT_DOXYGEN($PACKAGE_NAME, ${builddir}/doc/driver-api-guide/output) ########################################################################## +# Enable/disable ODP_DEBUG +########################################################################## +AC_ARG_ENABLE([debug], + [AS_HELP_STRING([--enable-debug], + [include additional debugging code ] + [(set to 'full' to enable all --enable-*-debug-* options)])]) + +AS_IF([test "x$enable_debug" != "xno"], [ODP_DEBUG=1], + [ODP_DEBUG=0]) +AC_DEFINE_UNQUOTED([ODP_DEBUG], [$ODP_DEBUG], + [Define to 1 to include additional debug code]) + +########################################################################## # Enable/disable ODP_DEBUG_PRINT ########################################################################## -ODP_DEBUG_PRINT=0 AC_ARG_ENABLE([debug-print], - [ --enable-debug-print display debugging information], - [if test "x$enableval" = "xyes"; then - ODP_DEBUG_PRINT=1 - fi]) + [AS_HELP_STRING([--enable-debug-print], [display debugging information])], + [], [AS_IF([test "x$enable_debug" = "xfull"], [enable_debug_print=yes], + [enable_debug_print=no])]) +AS_IF([test "x$enable_debug_print" != "xno"], [ODP_DEBUG_PRINT=1], + [ODP_DEBUG_PRINT=0]) AC_DEFINE_UNQUOTED([ODP_DEBUG_PRINT], [$ODP_DEBUG_PRINT], [Define to 1 to display debug information]) -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 - fi]) + [AS_HELP_STRING([--enable-helper-debug-print], [display helper debugging information])], + [], [AS_IF([test "x$enable_debug" = "xfull"], [enable_helper_debug_print=yes], + [enable_helper_debug_print=no])]) +AS_IF([test "x$enable_helper_debug_print" != "xno"], [ODPH_DEBUG_PRINT=1], + [ODPH_DEBUG_PRINT=0]) AC_DEFINE_UNQUOTED([ODPH_DEBUG_PRINT], [$ODPH_DEBUG_PRINT], [Define to 1 to display helper debug information]) ########################################################################## -# Enable/disable ODP_DEBUG -########################################################################## -ODP_DEBUG=0 -AC_ARG_ENABLE([debug], - [ --enable-debug include additional code], - [if test "x$enableval" = "xyes"; then - ODP_DEBUG=1 - fi]) -AC_DEFINE_UNQUOTED([ODP_DEBUG], [$ODP_DEBUG], - [Define to 1 to include additional debug code]) - -########################################################################## # Enable/disable ABI compatible build ########################################################################## ODP_ABI_COMPAT=1