From patchwork Thu Oct 5 09: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: 114850 Delivered-To: patch@linaro.org Received: by 10.80.163.170 with SMTP id s39csp4116edb; Thu, 5 Oct 2017 02:03:51 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDMlwUqZFHLXdTMqQM1BSkgJUkzMgRqqxekAIuSt+1Zs+hRvUtCVDrtkj+R3wJm4563vgQ7 X-Received: by 10.55.6.22 with SMTP id 22mr11125894qkg.340.1507194230925; Thu, 05 Oct 2017 02:03:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507194230; cv=none; d=google.com; s=arc-20160816; b=MrIMF82tgHg6C8lj8x8AUyxM1S+gDUKjNM6dOcTE9PLqFnrXIBuJv+KeTNZBoSVIVx ssHGTC/g+zJmim4DFp+FN6dmKDr/aoOGbD/zEnBHY/Vscmyw6AzKikKxapNWXFGT5j7L CgN1rVqgBmRlM4/Jchmh5Vnegnm3ylI0EbNeWShDMbiMuGsLaP3EdKoM2rHDEzplSKR3 U1PIV0RRM1KzxVmRijkEzFjnBlsrwi/H49uwpQrQ0SY4JLawCXRmsKGYMM/wyig8jY5E zP2jQC7qA8TRUW+OAA3AXBBrFqEkGJA0hwgdk2VFjN1IwVZMdqPlyfboSM0VAcIVS32Z evvA== 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=VsVKQaqeQEda2+4/RjlbovAP/yjmDlYsRPR7zIeM6x0=; b=kntqQG7ahtQv+Oz+ZTm+wzYQoDZwna774w2guWVZbJop5y+ZeTQorSkj8gcVNHNn8Z hci3xmxNY3GnqjjHu7Y3IndqDTEqt+bgmS59oANFBmc6shlLZLbXsv4uDwzJDI4UaJvo P782N2qY8YmZ0GAA+RTCTWT5KNEmULYTLuYelKhM/Z8JDHqIDvtrOCP+P6r3BX6hqCtk Wvy3wVE4KminKqLiLBX1DKCK1uPQFK99NHqr1NN2OmA0kWm/heE9a/joQDTvUC47/yHF kRdhfJbY19SS+i9YwVbn2+fEaAXTHJrBUszIjfxVKUKxKGlHyDx+All0Hf+1uFJCIutk FTNw== 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 e35si2406977qtd.444.2017.10.05.02.03.50; Thu, 05 Oct 2017 02:03:50 -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 7FA88644E1; Thu, 5 Oct 2017 09:03:50 +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_H3,RCVD_IN_MSPIKE_WL,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 014A5644AB; Thu, 5 Oct 2017 09:00:42 +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 94B4C6449B; Thu, 5 Oct 2017 09:00:32 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id 8154361BBA for ; Thu, 5 Oct 2017 09:00:26 +0000 (UTC) Received: from mxback2j.mail.yandex.net (mxback2j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10b]) by forward106o.mail.yandex.net (Yandex) with ESMTP id CED8C781A90 for ; Thu, 5 Oct 2017 12:00:24 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback2j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 1XmwgI1eHU-0OPWI77H; Thu, 05 Oct 2017 12:00:24 +0300 Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id crpg26GhCG-0OaWTYVL; Thu, 05 Oct 2017 12:00:24 +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 12:00:01 +0300 Message-Id: <1507194018-5453-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507194018-5453-1-git-send-email-odpbot@yandex.ru> References: <1507194018-5453-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 213 Subject: [lng-odp] [PATCH v1 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: 62f1037bdb0ffd5482e47209bfdbf7d820204116 **/ {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])