From patchwork Thu Oct 5 17:59:58 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: 114966 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp866098qgn; Thu, 5 Oct 2017 11:03:54 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDZ2rj6ekvvElbgk9HwJwGwYmgcS6OsnWSS3JlVrgnnfvyjVdrHlC03wfe+kXmInyy8kvHY X-Received: by 10.200.2.147 with SMTP id p19mr32716350qtg.242.1507226634694; Thu, 05 Oct 2017 11:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507226634; cv=none; d=google.com; s=arc-20160816; b=O0vjafHZYzZmc2D9yhM0wh/cbWaKnHpVfpP9JNxaMmF8IKbl3YEjuhHKgyHS5P/FsY U0f+EJtl0LIhvXLxiLb/+Wt7v1+Y/WtV9S3zY/DuEwXSI019run0dCb6wZS4fjyFkDwV 2rlDonUhyi5w1jZcuT5U0JRrIMtUNXOLnODlBXSMUezmQtcaSs9Aj6TGVdGIOa3BmsQy KvdD7F85t1wnuvKnycYZhB/Kt1ykWG09GM3sURWIjkwTqEop1TIZ4WXEQYlyo6ehG3fX nf6zQ0QVeydsvjAa3bf8sGKs/JObkrZ8224RrGcA8RnDNylQ9x8TSEOdo69/aMQdaEqN 5uCQ== 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=wBLpvqX0Pm1dfREYgohJIFXJJZT2K7WOQRvRy+6eUQw=; b=wX48SOcsdztuoEWCdtq9c9+SKzjzHiAeQiORB0xhgSIeM/lr49vfBUnpST5su3/469 iHzDR27A4Xp+TekYvCBCRcXykzN4dsFTWp/wCLsELJk847xFusvnEFxKN8/keYuXFVc5 9fa2Wq3ZyWScY0Kbe3xhqKRG2FgXvQ2tc/3BZybZT/jvu0d2L4zfTWw9WEIbkU8Hzme9 U8Z6HHUAXLKqC+R0u+fWqjkbEZQzg8Uaj3YWu28f8esYpGnmN01aZUFG+PhKPkPpVID6 YSA7WaUfonaxQK84jNn3UOXu4dMllm67LI6/lfx+s6gslAE1+b6d+lVuuhgAi26fetT+ BWlA== 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 a9si1155135qkh.311.2017.10.05.11.03.54; Thu, 05 Oct 2017 11:03: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 3ED14644B8; Thu, 5 Oct 2017 18:03: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 C1D2561E64; Thu, 5 Oct 2017 18:01:56 +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 E67DD61CBE; Thu, 5 Oct 2017 18:01:53 +0000 (UTC) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by lists.linaro.org (Postfix) with ESMTPS id C5E306449F for ; Thu, 5 Oct 2017 18:00:23 +0000 (UTC) Received: from mxback9j.mail.yandex.net (mxback9j.mail.yandex.net [IPv6:2a02:6b8:0:1619::112]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 5D574181E7D for ; Thu, 5 Oct 2017 21:00:22 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback9j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id nAIX7oMnK3-0M80fJor; Thu, 05 Oct 2017 21:00:22 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id AZHOFl0KbL-0LWqdYQh; Thu, 05 Oct 2017 21:00:21 +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: Thu, 5 Oct 2017 20:59:58 +0300 Message-Id: <1507226415-26756-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507226415-26756-1-git-send-email-odpbot@yandex.ru> References: <1507226415-26756-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 213 Subject: [lng-odp] [PATCH v3 3/20] m4: move timer_create check to common place 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 Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 213 (lumag:plat-def) ** https://github.com/Linaro/odp/pull/213 ** Patch: https://github.com/Linaro/odp/pull/213.patch ** Base sha: 52cfe7ba6d2541cf5ee464e46e91b2da5efe1497 ** Merge commit sha: 4157d06d3a16265d7d6152d7ae4918ec5623c10c **/ {platform/linux-generic/m4 => m4}/odp_timer.m4 | 7 +++++-- platform/linux-generic/m4/configure.m4 | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) rename {platform/linux-generic/m4 => m4}/odp_timer.m4 (63%) diff --git a/platform/linux-generic/m4/odp_timer.m4 b/m4/odp_timer.m4 similarity index 63% rename from platform/linux-generic/m4/odp_timer.m4 rename to m4/odp_timer.m4 index 3122c92b4..9a552f9ff 100644 --- a/platform/linux-generic/m4/odp_timer.m4 +++ b/m4/odp_timer.m4 @@ -1,8 +1,11 @@ +# ODP_TIMER([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) ########################################################################## # Check for POSIX timer functions ########################################################################## - +AC_DEFUN([ODP_TIMER], [dnl AC_CHECK_LIB([rt], [timer_create], [TIMER_LIBS="-lrt"], [AC_CHECK_LIB([posix4], [timer_create], [TIMER_LIBS="-lposix4"], - [AC_MSG_FAILURE([timer_create not found])])]) + [m4_default([$2], [AC_MSG_FAILURE([timer_create not found])])])]) +m4_default([$1], [:]) AC_SUBST([TIMER_LIBS]) +]) # ODP_TIMER diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4 index 63540c7eb..4d6ef49b9 100644 --- a/platform/linux-generic/m4/configure.m4 +++ b/platform/linux-generic/m4/configure.m4 @@ -75,7 +75,7 @@ fi AC_SUBST([ATOMIC_LIBS]) m4_include([platform/linux-generic/m4/odp_pthread.m4]) -m4_include([platform/linux-generic/m4/odp_timer.m4]) +ODP_TIMER ODP_OPENSSL m4_include([platform/linux-generic/m4/odp_pcap.m4]) m4_include([platform/linux-generic/m4/odp_netmap.m4])