From patchwork Tue Jun 5 14:21:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 9262 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:11c:0:0:0:0:0 with SMTP id c28-v6csp996279jad; Tue, 5 Jun 2018 07:29:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJPMLWsHr+3QAPZF2ZXLgnHx9g/xt40R1bf3f9H8VSJ/upn5+MXMj6RdQo//6PNwdHYgU8h X-Received: by 2002:a1c:5e85:: with SMTP id s127-v6mr12987983wmb.123.1528208950221; Tue, 05 Jun 2018 07:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528208950; cv=none; d=google.com; s=arc-20160816; b=aTpiF/03qIXkqj8A7hntCpAn1J0AHZk9CRsUXG85LKx9qAmiENsQSZnVM0hBsNGIVc SMHOvFHs1WaAYgcBHlOeMcc3vfZD/ojYWyYa4OqNK9h9VPhsJ8aGo6oiSxVHFTqeaz50 BOtBgOBoPGLjn0qM3+BwGrRiQ1RcaYlfosSOOEihEErfo/jvivVlN2y8cCuJfQX0disZ c+IHIAPTp7APyGe8GGWZIovoC6vyjv6IOGJShhgYby5VsiB8b2j5EL/aycSBMRonc4x0 pTy4xcQmo0Ht7q/M18S9kPGQxh1CBUzK7v43ZX0EBlxehLHehVb18WPyHNZHAgIYHb04 2cmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=AFJx3Nbs0Vjqlv3d7D74g5gw/DOpoadIaNOCcNigdJ8=; b=S0/eR77yoe3dJ6FNd1Syi52exUMrcMjF0D9FONGIXWfBMJqCvOWHmZUg6N+tznaKeD fYEKU+p5cTlwK210S2M9aqjxhoHPmwjJZoYiPGki0bx8abswUJu5O/3jLpZeq7Ww6Vre ZOoeslqPU66zBOWVMvuqvOvlDEzFZNAuHYpjSRzYPMaZq+ZOa2POVP7qmXgiwQ8VbtvK tBQ8gFo8RgqhbsdlRLWZHj/GJb8iPn55Kuqw9Op6Y7TpF3lPvfjGNAfCqfvU4277REzk CVJch+OrzjlIPqDaZiyRLFphpiL1yrTO3lKC+DhJL8UGq40KH9NLbRPDfc2WLXx2hJPX pn4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=OGgtdZlZ; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id h17-v6si23551115wrf.316.2018.06.05.07.29.09; Tue, 05 Jun 2018 07:29:10 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=OGgtdZlZ; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B1EB468A740; Tue, 5 Jun 2018 17:28:15 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1B41E68A71A for ; Tue, 5 Jun 2018 17:28:08 +0300 (EEST) Received: by mail-pg0-f66.google.com with SMTP id p21-v6so1312679pgd.11 for ; Tue, 05 Jun 2018 07:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=F9PTVpqkXCvkVnxSH7CBjompKmm7ZW4KtdXBHMq8yOw=; b=OGgtdZlZaJ5uCnW2rQsnnsNTsEtCgknJMJGQCZyjCHnFapLvGJwfCuLETG7CVx34AN 67S4iwh8vaxGrlaoyiZyyGlEyCbl8BGxhGL2kynTABui0w0pVQexW6gEqX0gDJ/8ZykU 89bA8j7f/5uhyViZtS4SX8rrEn6xInHd5EXHqqkwICAMNvewPa3gWnavHbfiJiIj38d9 4yFZtPPjOqzaWvNmwabOm7sUIH0V+9zBKPm4uV5pkz1Q74pHej4qcGiorwZ1uuGCywyu QSYZXRjWH0T3sWtQtfCP7HH6Log9AZEeCNJfFVSIVjvRDklJwafPQY8Q9ls0pofY6GcV fusQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=F9PTVpqkXCvkVnxSH7CBjompKmm7ZW4KtdXBHMq8yOw=; b=HJ+Zuer5FN26XC5ihWVw36rGx1E062/FBDznlXQG+3j0I1PF5XAt4WulBZFMJy/dYK 6ZlYZUcnMYc+0dBVqThU2UOAH3UON9oSifLmYVEsnaNvZvrTk+47sKBscZymREd+wwKp FZhvb9dZi9vGE+uwzNN8lj8+qMWdKxl/3nSnTfuDfYemVY+8I2r1Mgbd3nNgsV8MVG/A 4X0bLoqktBCwupU3c9Un0jFaLRtllaxQiAZyZw3/26UAlMW1c23QY1SfPW805PlxGo/g C4PSOo5zlNubjNdQQ/qb9vT5UrrPBt1zE5ELSX+GygulHLcw3OXfax/He7APlXv4Fl1Q h5NQ== X-Gm-Message-State: ALKqPwdJrIIRitBaBnLwapwq0FFkNYnZBV5P/ODhx9UPHFnSyg+kGOVf J/v5MQmJagDp5yDcVNLt8Y/GxQ== X-Received: by 2002:a65:6157:: with SMTP id o23-v6mr21416326pgv.310.1528208505699; Tue, 05 Jun 2018 07:21:45 -0700 (PDT) Received: from localhost.localdomain ([47.88.54.25]) by smtp.gmail.com with ESMTPSA id x3-v6sm40566497pfm.2.2018.06.05.07.21.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Jun 2018 07:21:44 -0700 (PDT) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Tue, 5 Jun 2018 22:21:25 +0800 Message-Id: <1528208486-2362-4-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528208486-2362-1-git-send-email-mypopydev@gmail.com> References: <1528208486-2362-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH v4 3/4] configure: fix check for opencl X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" add pkg-config support for opencl check. Signed-off-by: Jun Zhao --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 53224f0..aaf7b02 100755 --- a/configure +++ b/configure @@ -6135,7 +6135,8 @@ enabled openal && { { for al_extralibs in "${OPENAL_LIBS}" "-lopenal" die "ERROR: openal not found"; } && { test_cpp_condition "AL/al.h" "defined(AL_VERSION_1_1)" || die "ERROR: openal must be installed and version must be 1.1 or compatible"; } -enabled opencl && { check_lib opencl OpenCL/cl.h clEnqueueNDRangeKernel -Wl,-framework,OpenCL || +enabled opencl && { check_pkg_config opencl OpenCL CL/cl.h clEnqueueNDRangeKernel || + check_lib opencl OpenCL/cl.h clEnqueueNDRangeKernel -Wl,-framework,OpenCL || check_lib opencl CL/cl.h clEnqueueNDRangeKernel -lOpenCL || die "ERROR: opencl not found"; } && { test_cpp_condition "OpenCL/cl.h" "defined(CL_VERSION_1_2)" ||