From nobody Tue Feb 10 21:40:32 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1523389312170589.917570240419; Tue, 10 Apr 2018 12:41:52 -0700 (PDT) Received: from localhost ([::1]:39693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5z98-0001mE-ED for importer@patchew.org; Tue, 10 Apr 2018 15:41:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5z6z-000056-A8 for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5z6w-0006F5-MA for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:25 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:38559) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f5z6w-0006EK-Fb for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:22 -0400 Received: by mail-wr0-x244.google.com with SMTP id m13so13941980wrj.5 for ; Tue, 10 Apr 2018 12:39:22 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id b40sm6040219wrb.88.2018.04.10.12.39.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Apr 2018 12:39:20 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 75CE43E0250; Tue, 10 Apr 2018 20:39:19 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HnnH/B3e+/eyblACYMxhSUMzH5FCKtfu6tFgUyIuT4A=; b=AScs8/tnKDVgYpUqmjjpkBi2VnadwhXIJFqog2ylbS9JUt0OzHPXV7IT3JynaNRXmo 77SX5GX7gASobB75tUJ2l4AjtYCwMu+Ez36vcj7/KCnxqfDm4tEXys2QJDl2fpwFlocx W8ppWOrXgXZY3rAXhnXX4kFv+9OrivjcIBfGE= 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:mime-version:content-transfer-encoding; bh=HnnH/B3e+/eyblACYMxhSUMzH5FCKtfu6tFgUyIuT4A=; b=Ll6nrjppN+wMQcaGaSBx7vZNMrzBqHZyECIY7Y5iu4xSee82qyZ/gUt1nT6izbMsKM 2x2/EALQoDtByAMr5VPjmmWI930hK8sde2/Xz09zAVKI1s+w6lCZfAW4g79ry2TLC70m CZTxUp7b8BegS6QbfOHTdLyZWTW+pMo0bdZS/vwlK2qMKPSV1L7M/dEkuIRiLIbdXxka cVZbG6n0jnCV3o8Z7dnWMs+RdlXZksamIbPXAXQ3vCSAuU1O7kTIYItBES4ZJ6hQua2L 2Ci6OcJWcWN3eh4eJSPlxUvqxU/kwLxJweuKZGIKVOco4sVTbvsalflCUwc0XfuIzaMH lGnA== X-Gm-Message-State: ALQs6tDRvaG8xhlmb54F2riWS8Ry+RJq7DvdDAoQQRti4Obw/mTyjT2r 7t1NNkcWmPq09RQ2RVvLNbXLSg== X-Google-Smtp-Source: AIpwx4+F4MC9IdlkRfZghf2JbQB33dA4nx2PLSZmukBhhxEQHuKb3l0ieOuHTQSmrR4t1HartncBvg== X-Received: by 10.223.195.205 with SMTP id d13mr1435182wrg.0.1523389161332; Tue, 10 Apr 2018 12:39:21 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 10 Apr 2018 20:38:56 +0100 Message-Id: <20180410193919.28026-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180410193919.28026-1-alex.bennee@linaro.org> References: <20180410193919.28026-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::244 Subject: [Qemu-devel] [PATCH v1 01/24] configure: add test for docker availability X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , famz@redhat.com, cota@braap.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 This tests for a working docker installation without sudo and sets up config-host.mak accordingly. This will be useful from cross compiling things in the future. Signed-off-by: Alex Benn=C3=A9e --- configure | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/configure b/configure index 4d0e92c96c..b402befe94 100755 --- a/configure +++ b/configure @@ -451,6 +451,7 @@ jemalloc=3D"no" replication=3D"yes" vxhs=3D"" libxml2=3D"" +docker=3D"no" =20 supported_cpu=3D"no" supported_os=3D"no" @@ -5396,6 +5397,23 @@ EOF fi fi =20 +########################################## +# Docker and cross-compiler support +# +# This is specifically for building test +# cases for foreign architectures, not +# cross-compiling QEMU itself. + +if has "docker"; then + if docker images >/dev/null 2>&1 ; then + docker=3D"yes" + else + # docker may be available but using sudo + # so we won't use it for cross-building + docker=3D"maybe" + fi +fi + ########################################## # End of CC checks # After here, no more $cc or $ld runs @@ -5857,6 +5875,7 @@ echo "avx2 optimization $avx2_opt" echo "replication support $replication" echo "VxHS block device $vxhs" echo "capstone $capstone" +echo "docker $docker" =20 if test "$sdl_too_old" =3D "yes"; then echo "-> Your SDL version is too old - please upgrade to have SDL support" @@ -6680,6 +6699,10 @@ if test "$gcov" =3D "yes" ; then echo "GCOV=3D$gcov_tool" >> $config_host_mak fi =20 +if test "$docker" =3D "yes"; then + echo "HAVE_USER_DOCKER=3Dy" >> $config_host_mak +fi + # use included Linux headers if test "$linux" =3D "yes" ; then mkdir -p linux-headers --=20 2.16.2