From patchwork Wed Aug 30 17:00:01 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: 111323 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp1238097qge; Wed, 30 Aug 2017 10:02:54 -0700 (PDT) X-Google-Smtp-Source: ADKCNb7P5jsdYP2+bv+dH4ifwsRJYj4UoE1j9J0LN3ctkju98LvYqFGHwYXjf5duZqh6Vl29rpnB X-Received: by 10.237.34.220 with SMTP id q28mr2953179qtc.241.1504112574885; Wed, 30 Aug 2017 10:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504112574; cv=none; d=google.com; s=arc-20160816; b=w9RbqthCDl/FMoTs3tJ2v3DKE+3LYG9uKfM8VrlhYGtP7ZU6d4nOfKNvqRYittfj9+ kTKGcsDDOhmGaCvAjNf6xe10CL9VazhzQShdxMG3d4T1Go1R8fXSrBCUX5VwSzevR21V CD5Smw2HsHU2i59Hm6g86iJ8Bt2ijJaGvaLG2+1zHWsJYRJlKvfgThIkEeiY1G7ptbqL n6ItZByLRCGTzKIucVVRdsNXHm/XLhPjQZNDaQ+QLElESk4JvCs0lvTXQJCKD/xNWluI KmSIVh4UQRfyhQPjBlINaWrjxw+EGcyS0C8rv1xxpa9r768Dz1S/5oRTK6KLXXW/NoOH qZAQ== 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=wKt8SFn/fvnAVW+nqE46LeB4w/XFz5WrlIQLOh/Oqjk=; b=UL8I69XTzB02+WGJCDWTFGBxOgP7Kg9TPmuHoxgDR8PPsE9K+KFdLmWIM4PYt43+dI 87EL0NxYowcmmHZSQ4hOO9CxstN2sHyQy47RCURYbmjAl2+PUi4KLOS5MPMMgA0bkySK usyWtVp0Fe8GGz+JdmvTpxyWsRyZ6KkCRyWaSpy770lSD+/I8cMxOYHR7MtTUEFGcTAp jwWNiq0wsoJlULt9mignQsVpzBSwmkDPl5bWL4YB+0uh07SLlgXgMaGw99I0NBIXkQNh xgbAyJNO8ezcMEnAdpySydkjNkAT1A7GKN27nuLo1MTvkaznw+sEPkS8Br5SjEy/nvzJ VOFA== 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 m126si5810210qkd.191.2017.08.30.10.02.54; Wed, 30 Aug 2017 10:02:54 -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 5DFDC62C59; Wed, 30 Aug 2017 17:02:54 +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 5396862C2D; Wed, 30 Aug 2017 17:00:35 +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 F091960C4F; Wed, 30 Aug 2017 17:00:24 +0000 (UTC) Received: from forward3p.cmail.yandex.net (forward3p.cmail.yandex.net [77.88.31.18]) by lists.linaro.org (Postfix) with ESMTPS id 37FBE60C4F for ; Wed, 30 Aug 2017 17:00:23 +0000 (UTC) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [5.45.198.129]) by forward3p.cmail.yandex.net (Yandex) with ESMTP id 2C208210D6 for ; Wed, 30 Aug 2017 20:00:21 +0300 (MSK) Received: from smtp4j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp4j.mail.yandex.net (Yandex) with ESMTP id EB8233240C86 for ; Wed, 30 Aug 2017 20:00:20 +0300 (MSK) Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id vVX7TjUjPU-0JLOBlnQ; Wed, 30 Aug 2017 20:00:19 +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 20:00:01 +0300 Message-Id: <1504112406-3108-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1504112406-3108-1-git-send-email-odpbot@yandex.ru> References: <1504112406-3108-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 155 Subject: [lng-odp] [PATCH v4 4/9] 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: 82cd6ec8e88e93808778f00e24852395a62ae20b **/ 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