From patchwork Tue Aug 15 10:00:05 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: 110126 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp5476156qge; Tue, 15 Aug 2017 03:15:32 -0700 (PDT) X-Received: by 10.55.46.66 with SMTP id u63mr35369220qkh.333.1502792132861; Tue, 15 Aug 2017 03:15:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502792132; cv=none; d=google.com; s=arc-20160816; b=T+jsIFnEF+SKb16/SX62PKl0yyCvf/zK0o9sWggd53f094awery19yZxJZKFOGp0zg FhbINPVp2SXoWpW475wWnUEgBP0sl+gNLCBhcjTmfETiQG9e3Rot70g5Q+0PVfMkXki+ petKBlEy8ywpkqYJWBSS5BK9RWvG6AUI//SlV4Zt89nODjXOEgwT/YeeeGNxyG3BTgmq 82vY5baADumiduXuHzzBqiN/ggrmcFb4oNKrxASMFMIPjQx9OaPoMjg0Yh7mfBoUqKAH ACxEpzy46qjtro9LGbIAvo+OIPqFoB/xJEb5KsgcinXbYfzwPmovdZ60EsVPNWiaAWYI xvrQ== 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=vLXljfSrUH/HkUrhxO0RrmEMSlf2DWQ5AqgzuaXMLNc=; b=KonYD3RJvAYJWQ7ztx74Gv8nW1Lg58hmqNvj0NHIlrXQdZQf+NjbIZdc/iTSJatQ3X n9Yp8BqdXhnx/DMPVzB1Txct0Bgoz0qoy82B38CVWU1Bab3RbD7Nbk+4pYKtrgtCFlbl RVA4ca0rkmhjv5J/ZqhxBAcOe75arh8MBA67NVxnVeCFHKxj97VITg2N6PGWCnJ20IFz Ja83UiTjLSDWbpu4zEcQ01GxcIldb9XmbX3GFPJmzoyjEsDoC8SlhmDN7rcMmUnETsbZ l/58LwEyuC6udtTKI5N8s/zrQIj47wyqHx2HabBYHtcNlNFVWNioJB0PcxywphDhIEEF RUAQ== 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 a24si8418757qtk.181.2017.08.15.03.15.32; Tue, 15 Aug 2017 03:15:32 -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 96489644D4; Tue, 15 Aug 2017 10:15:32 +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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 C0CFD65CA7; Tue, 15 Aug 2017 10:02: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 78AE665C25; Tue, 15 Aug 2017 10:02:32 +0000 (UTC) Received: from forward101j.mail.yandex.net (forward101j.mail.yandex.net [5.45.198.241]) by lists.linaro.org (Postfix) with ESMTPS id 68B7465C25 for ; Tue, 15 Aug 2017 10:00:39 +0000 (UTC) Received: from mxback11g.mail.yandex.net (mxback11g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:90]) by forward101j.mail.yandex.net (Yandex) with ESMTP id CAEBD12422D0 for ; Tue, 15 Aug 2017 13:00:36 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback11g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id hVDq8qndz8-0ao0LKXp; Tue, 15 Aug 2017 13:00:36 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id fa5mS4tQKd-0ajqY3KR; Tue, 15 Aug 2017 13:00:36 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 15 Aug 2017 13:00:05 +0300 Message-Id: <1502791206-2437-16-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502791206-2437-1-git-send-email-odpbot@yandex.ru> References: <1502791206-2437-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 127 Subject: [lng-odp] [PATCH v2 15/16] configure: AC_DEFINE(ODP_NETMAP) 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 Use Autoconf macros instead of defining macro by hand. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 127 (lumag:improve-build) ** https://github.com/Linaro/odp/pull/127 ** Patch: https://github.com/Linaro/odp/pull/127.patch ** Base sha: 90d4ce1b3b25ca18446131906007571cc0ed0191 ** Merge commit sha: 3e7a44d8f4b7c90183d3bd3b57bc812f16de030f **/ platform/linux-generic/m4/odp_netmap.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/m4/odp_netmap.m4 b/platform/linux-generic/m4/odp_netmap.m4 index dea80626..bd04824b 100644 --- a/platform/linux-generic/m4/odp_netmap.m4 +++ b/platform/linux-generic/m4/odp_netmap.m4 @@ -31,7 +31,8 @@ if test x$netmap_support = xyes then AC_CHECK_HEADERS([net/netmap_user.h], [], [AC_MSG_FAILURE(["can't find netmap header"])]) - ODP_CFLAGS="$ODP_CFLAGS -DODP_NETMAP" + AC_DEFINE([ODP_NETMAP], [1], + [Define to 1 to enable netmap IO support]) AC_SUBST([NETMAP_CPPFLAGS]) else netmap_support=no