From nobody Sun Feb 8 18:08:48 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1594893909; cv=none; d=zohomail.com; s=zohoarc; b=MMhdPCPl/9rHelFPW0uDmTR9c0hUMW5UOJciuL8wmBIva4VTVxQ4RqsHA41mY+DUeeoR5t6YA8yUjogfFQPnOTON+nTLTkyV3NY7F0wZxw78DEA5JLoeKPAVp25lOWd2Fq3IFEysoVc7nnfxWWJYupWJwZq8EiSjjMEdUUxUZzk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594893909; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=8chLD+nJeBWN173zqmoMBNJTzypXC4q6mGgHnJCa1SY=; b=hp9FTCKat61sXjjV+ZvrRIJwASaC6WsWDWoQB+TtNdFi8S8WJnPSrj+3SPZvyx6PG2yupCUP+8VIrXYwURjiwv1mfV2XzSghnVdUKIE/t/vPQSL75yvGi5euTxwh3eNTXRQ6/uc0gbd/HiO8KjGJWaNhIMGCzQgLjcuJfIRQGRM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1594893909964837.5837656190093; Thu, 16 Jul 2020 03:05:09 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-211-9YGUCnRTPtiaw6n2quFJfw-1; Thu, 16 Jul 2020 06:03:19 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EBEC72CCE; Thu, 16 Jul 2020 10:03:03 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C57AF6FEFF; Thu, 16 Jul 2020 10:03:03 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 91A3C96236; Thu, 16 Jul 2020 10:03:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 06GA2x6D016851 for ; Thu, 16 Jul 2020 06:02:59 -0400 Received: by smtp.corp.redhat.com (Postfix) id 243662DE7F; Thu, 16 Jul 2020 10:02:59 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 91EF82DE9D for ; Thu, 16 Jul 2020 10:02:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594893908; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=8chLD+nJeBWN173zqmoMBNJTzypXC4q6mGgHnJCa1SY=; b=AnGjlhkuSil33emAyfFUhXjkuQr/fWw/Ziy2tpmIbNH++c4un+yzE7cxNp2ZrD05fVgJKO x/ajtYN4Eh8Es54NfbXt9BeMTMCnNX+wFmPpIj/O/eYuZNIFRvbsRszyopOsZ4zBda+vfB 7HSd+W/4h81GwaBrK55A2tEgh07CTYo= X-MC-Unique: 9YGUCnRTPtiaw6n2quFJfw-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 098/351] meson: add storage build check Date: Thu, 16 Jul 2020 11:55:34 +0200 Message-Id: <107697d1f572835a0bfae86a37c979015d5a9baf.1594891445.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina --- configure.ac | 13 ------------- meson.build | 9 +++++++++ 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/configure.ac b/configure.ac index e4cd6c15e16..49ead1baa8e 100644 --- a/configure.ac +++ b/configure.ac @@ -186,19 +186,6 @@ LIBVIRT_STORAGE_CHECK_GLUSTER LIBVIRT_STORAGE_CHECK_ZFS LIBVIRT_STORAGE_CHECK_VSTORAGE =20 -with_storage=3Dno -for backend in dir fs lvm iscsi iscsi_direct scsi mpath rbd disk; do - if eval test \$with_storage_$backend =3D yes; then - with_storage=3Dyes - break - fi -done -if test $with_storage =3D yes; then - AC_DEFINE([WITH_STORAGE], [1], - [Define to 1 if at least one storage backend is in use]) -fi -AM_CONDITIONAL([WITH_STORAGE], [test "$with_storage" =3D "yes"]) - dnl Python3 < 3.7 treats the C locale as 7-bit only. dnl We must force env vars so it treats it as UTF-8 dnl regardless of the user's locale. diff --git a/meson.build b/meson.build index 6527473ceaf..c865d6c2cbf 100644 --- a/meson.build +++ b/meson.build @@ -1861,6 +1861,15 @@ if conf.has('WITH_QEMU') or conf.has('WITH_LXC') or = conf.has('WITH_NETWORK') endif =20 =20 +# check for storage drivers + +use_storage =3D false + +if use_storage + conf.set('WITH_STORAGE', 1) +endif + + # define top include directory =20 top_inc_dir =3D include_directories('.') --=20 2.26.2