From patchwork Fri Feb 16 19:00:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 128630 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp879790ljc; Fri, 16 Feb 2018 11:00:54 -0800 (PST) X-Google-Smtp-Source: AH8x224PO9+SPXcr3HVMivp1udMZzpLtAwos6DpsItGBzDN6fT/zwJdNsPJUEMMvxuL7yIqMgmk8 X-Received: by 10.237.62.90 with SMTP id m26mr11822293qtf.283.1518807654775; Fri, 16 Feb 2018 11:00:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518807654; cv=none; d=google.com; s=arc-20160816; b=u3tBPLZFmMiK4hVgaEHL0xV9ispwV5sfEzWLhfbZua0kZCyX8oFlbI+jzrk2GjSoAI naNGgvAqjLYifBcddG10JuiNtAKNXi5L3klWTmuElEjIT+gQeWq0pn6N6EWDf9Cy3v0H iduo24ql2iaF0ZgXwK/JKihasjdGnw8Be0th8s6tkNiKXp2iNrjcaC1SlhpR0mFIzoz1 bLtCEjW3MGOCvlq47HD6GH4ksK9SSGHOFSdj34cHNAeKmFusY1NYxt0t9fPEng13zwG5 gQ/1DOfdMGQiK29nM84UdWnd63sV1+YI3zyXhbqwcs3TYCKdaedvrO72bPwVNGU7Ilf6 zM3Q== 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=pt0ODIGgUzfdc4FqY1s1N/hxji1LWuL7OGgiuJzihKg=; b=gRG1Tyj2DUybZSx7+eQIcDSYL65NwiDQYDhQOGPTEOErelpJGGDbyoFkeDiLG1lB0t wegONK53u4VyH2uckBDBdNnB8lzqnE750YW6/LAGqqkrKm+FAu51GVvuWT0B/PIUQyay TjJW+ODmWYKEedrZyPDBoXwnuBVIY3FI3t1x//rNcSt8HrkmA+FG6QxyK2kSWR4xGJPI xvofpR89zAiUWVQLs1NbB0vtnBpZdpiVwiXomlHiY6j2cLaafb/tTbqn6t1nFlf087Pq bSWx2I9ZN5U6/jN+sPOOUjOBcy00d+OLDlRYSSDpb2YoTsV2webxpABAH4pQt/jOest/ 87HA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id f26si1237033qki.447.2018.02.16.11.00.48; Fri, 16 Feb 2018 11:00:54 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 D2CEB6174A; Fri, 16 Feb 2018 19:00:48 +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, RCVD_IN_MSPIKE_H2 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 552EE617BF; Fri, 16 Feb 2018 19:00:17 +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 37751617AA; Fri, 16 Feb 2018 19:00:14 +0000 (UTC) Received: from forward104j.mail.yandex.net (forward104j.mail.yandex.net [5.45.198.247]) by lists.linaro.org (Postfix) with ESMTPS id CDF4261794 for ; Fri, 16 Feb 2018 19:00:11 +0000 (UTC) Received: from mxback1o.mail.yandex.net (mxback1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1b]) by forward104j.mail.yandex.net (Yandex) with ESMTP id AE927432DD for ; Fri, 16 Feb 2018 22:00:09 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback1o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id oOp63mqe7k-09Zakfk8; Fri, 16 Feb 2018 22:00:09 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id B8qX1007YZ-09qCo2O7; Fri, 16 Feb 2018 22:00:09 +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: Fri, 16 Feb 2018 22:00:07 +0300 Message-Id: <1518807607-25131-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518807607-25131-1-git-send-email-odpbot@yandex.ru> References: <1518807607-25131-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 489 Subject: [lng-odp] [PATCH v1 1/1] odp_dpdk.m4: fix detection of system libraries 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: Josep Puigdemont Signed-off-by: Josep Puigdemont --- /** Email created from pull request 489 (joseppc:fix-config) ** https://github.com/Linaro/odp/pull/489 ** Patch: https://github.com/Linaro/odp/pull/489.patch ** Base sha: 6e213fbae7f16558e572da39704927f107c01f80 ** Merge commit sha: b46bb7c36a24023e14284075e146a5c15ea66b8b **/ m4/odp_dpdk.m4 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/m4/odp_dpdk.m4 b/m4/odp_dpdk.m4 index bf3dfccfa..0050fc4b4 100644 --- a/m4/odp_dpdk.m4 +++ b/m4/odp_dpdk.m4 @@ -108,30 +108,30 @@ CPPFLAGS=$OLD_CPPFLAGS # Check for DPDK availability AC_DEFUN([ODP_DPDK], [dnl AS_IF([test "x$1" = "xsystem"], [dnl - DPDK_CPPFLAGS="-isystem/usr/include/dpdk" + DPDK_CPPFLAGS="-isystem /usr/include/dpdk" DPDK_LDFLAGS="" DPDK_LIB_PATH="`$CC --print-file-name=libdpdk.so`" - if test "x$DPDK_LIB_PATH" = "x" ; then + if test "$DPDK_LIB_PATH" = "libdpdk.so" ; then DPDK_LIB_PATH="`$CC --print-file-name=libdpdk.a`" + AS_IF([test "$DPDK_LIB_PATH" = "libdpdk.a"], + [AC_MSG_FAILURE([Could not locate system DPDK library directory])]) else DPDK_SHARED=yes fi - AS_IF([test "x$DPDK_LIB_PATH" = "x"], - [AC_MSG_FAILURE([Could not locate system DPDK library directory])]) - DPDK_PMD_PATH=`AS_DIRNAME(["$DPDK_PMD_PATH"])` + DPDK_LIB_PATH=`AS_DIRNAME(["$DPDK_LIB_PATH"])` ], [dnl DPDK_CPPFLAGS="-isystem $1/include" DPDK_LIB_PATH="$1/lib" DPDK_LDFLAGS="-L$DPDK_LIB_PATH" - DPDK_PMD_PATH="$DPDK_LIB_PATH" if test -r "$DPDK_LIB_PATH"/libdpdk.so ; then DPDK_RPATH="-Wl,-rpath,$DPDK_LIB_PATH" DPDK_RPATH_LT="-R$DPDK_LIB_PATH" DPDK_SHARED=yes fi ]) +DPDK_PMD_PATH="$DPDK_LIB_PATH" AS_IF([test "x$DPDK_SHARED" = "xyes"], - [AC_MSG_NOTICE([Using shared DPDK library found at $DPDK_PMD_PATH])], - [AC_MSG_NOTICE([Using static DPDK library found at $DPDK_PMD_PATH])]) + [AC_MSG_NOTICE([Using shared DPDK library found at $DPDK_LIB_PATH])], + [AC_MSG_NOTICE([Using static DPDK library found at $DPDK_LIB_PATH])]) _ODP_DPDK_CHECK([$DPDK_CPPFLAGS], [$DPDK_LDFLAGS], [$2], [$3]) ])