From patchwork Thu Oct 5 10:00:00 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: 114873 Delivered-To: patch@linaro.org Received: by 10.80.163.170 with SMTP id s39csp52961edb; Thu, 5 Oct 2017 03:08:57 -0700 (PDT) X-Google-Smtp-Source: AOwi7QB+8emhGVxrxiV+FGS0s0F+tVdNIF/KeNKyDLvEpHcoq91IJJSiCsFas/WsUfnm4hy+Yskd X-Received: by 10.55.6.149 with SMTP id 143mr12557108qkg.231.1507198136898; Thu, 05 Oct 2017 03:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507198136; cv=none; d=google.com; s=arc-20160816; b=yE9M774Nwpd0a6xv8d1tgP1h2f+CPIpBrbIxVdbtpbFSHOQ9tPNyNs4qSmfNt6DYBb Jm3oLpgxyoP4bVGFpjIO6NAHUvSz7VQpQeJYctSsWuPrNI0RydrG9ADOKeyyFo5qitUH 6zWKEM5A7PKfS0X2ADvlA+SR9I8e9qB8WPIF3ulpgRNYqbiwgOpdTiFUQiE3V3cSDOxy Up3kkGwOdrcTX+0tgJMk2myZZl2+Z0qdYn4vCfGDOeFcGYeQEv2qnY79T/bfKneAx241 FLw3BqN3Yj3abrd4OACyXKrl/W2m+f/epuK5MPUwk+iAQ4woPuSyoLh1mIFszxde+Kxo 0y+Q== 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=NsUAwSfJD30bFcrWrEQ6lyq5kGi1evUwdlZeGAVpHcY=; b=VyvwRJyn0TXgk2XU5GFawb5G/HRRdy/6+taf8AVH2Z9Me/C/8/MCCgXbaWAo/83Upn WjBalx6vOkVr3VhlRlFgiWXZg4NlluAptASVhh05iKL4xypyjUObeBqNzGgvH5XwNdbF 5jD0Yla1/IUUkOnxSafSb9HuYAWUDL7PhiE+hVaVJne11C6YzNDxUQLFne3jQp4cLIhY ybMhli7TjqNwAF5pkYVZUut0bQTyvlxPkHeQGf2TgVRFyrGEz5lWjW7nV6DBSQWZDGUy sHLpMPSDL8I8PomTreTPlKxyPinhCLdf+DR7n6vDLBO/Zt5ABzYQcwuj+ziR+9RcYR0s tDBQ== 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 u184si6971815qkd.263.2017.10.05.03.08.56; Thu, 05 Oct 2017 03:08:56 -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 69A2F644B6; Thu, 5 Oct 2017 10:08:56 +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 DCF2C60C8F; Thu, 5 Oct 2017 10:02:03 +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 CB70860918; Thu, 5 Oct 2017 10:01:59 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id 9D8F461E02 for ; Thu, 5 Oct 2017 10:00:31 +0000 (UTC) Received: from mxback1j.mail.yandex.net (mxback1j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10a]) by forward105o.mail.yandex.net (Yandex) with ESMTP id 5CCDD44441B1 for ; Thu, 5 Oct 2017 13:00:29 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback1j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id PILttVfber-0NKatmKC; Thu, 05 Oct 2017 13:00:23 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id DGg9opEbVV-0Mq8ZKew; Thu, 05 Oct 2017 13:00:22 +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 13:00:00 +0300 Message-Id: <1507197617-6215-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507197617-6215-1-git-send-email-odpbot@yandex.ru> References: <1507197617-6215-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 213 Subject: [lng-odp] [PATCH v2 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: f77d26100249d410e863b9db7a1a41fdad922e03 **/ {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])