From patchwork Thu Dec 19 14:38:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Reitz X-Patchwork-Id: 11303777 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 36C45921 for ; Thu, 19 Dec 2019 14:42:14 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0C92C2467B for ; Thu, 19 Dec 2019 14:42:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="QE3JoyD2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0C92C2467B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:42916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihx0G-0001TI-Lp for patchwork-qemu-devel@patchwork.kernel.org; Thu, 19 Dec 2019 09:42:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55661) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihwwh-0004OU-Jo for qemu-devel@nongnu.org; Thu, 19 Dec 2019 09:38:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihwwg-0004M7-Gb for qemu-devel@nongnu.org; Thu, 19 Dec 2019 09:38:31 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:29178 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ihwwg-0004IX-BE for qemu-devel@nongnu.org; Thu, 19 Dec 2019 09:38:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576766309; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UCVeQFCt2yi/YlY57zKMOsjAqA+h2IpIYTAyv/Ap+IQ=; b=QE3JoyD222gKHnPZIcYJJ8GNGWCSWScOMpiRa/jgTbRGXvcIbV8zvHR4MD9yqd9RX56rJs 9CzwtdToyjjZkgM31FKEWabF3OymI2fZqwEBNAqzb8fpolkrXrOaJr9istoOOMS4FJiL6E 2GJ0qtZ/mhTbsEwz4ZXf93eY7bIxQyw= 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-432-UOlHbPRuOPOUzo6nVfi7yg-1; Thu, 19 Dec 2019 09:38:28 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1CC2F911BD; Thu, 19 Dec 2019 14:38:26 +0000 (UTC) Received: from localhost (ovpn-205-138.brq.redhat.com [10.40.205.138]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A0E43703A0; Thu, 19 Dec 2019 14:38:22 +0000 (UTC) From: Max Reitz To: qemu-block@nongnu.org Subject: [PATCH 01/18] configure: Detect libfuse Date: Thu, 19 Dec 2019 15:38:01 +0100 Message-Id: <20191219143818.1646168-2-mreitz@redhat.com> In-Reply-To: <20191219143818.1646168-1-mreitz@redhat.com> References: <20191219143818.1646168-1-mreitz@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: UOlHbPRuOPOUzo6nVfi7yg-1 X-Mimecast-Spam-Score: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 205.139.110.61 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , qemu-devel@nongnu.org, Max Reitz Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Max Reitz --- configure | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/configure b/configure index 84b413dbfc..ff7d760a0a 100755 --- a/configure +++ b/configure @@ -503,6 +503,7 @@ debug_mutex="no" libpmem="" default_devices="yes" plugins="no" +fuse="" supported_cpu="no" supported_os="no" @@ -1534,6 +1535,10 @@ for opt do ;; --disable-plugins) plugins="no" ;; + --enable-fuse) fuse=yes + ;; + --disable-fuse) fuse=no + ;; *) echo "ERROR: unknown option $opt" echo "Try '$0 --help' for more information" @@ -1819,6 +1824,7 @@ disabled with --disable-FEATURE, default is enabled if available: debug-mutex mutex debugging support libpmem libpmem support xkbcommon xkbcommon support + fuse fuse block device export NOTE: The object files are built at the place where configure is launched EOF @@ -6042,6 +6048,28 @@ case "$slirp" in ;; esac +########################################## +# FUSE support + +if test "$fuse" != "no"; then + cat > $TMPC < +#include +int main(void) { return 0; } +EOF + fuse_cflags=$(pkg-config --cflags fuse3) + fuse_libs=$(pkg-config --libs fuse3) + if compile_prog "$fuse_cflags" "$fuse_libs"; then + fuse=yes + else + if test "$fuse" = "yes"; then + feature_not_found "fuse" + fi + fuse=no + fi +fi + ########################################## # End of CC checks @@ -6556,6 +6584,7 @@ echo "libpmem support $libpmem" echo "libudev $libudev" echo "default devices $default_devices" echo "plugin support $plugins" +echo "fuse exports $fuse" if test "$supported_cpu" = "no"; then echo @@ -7410,6 +7439,12 @@ if test "$plugins" = "yes" ; then fi fi +if test "$fuse" = "yes"; then + echo "CONFIG_FUSE=y" >> $config_host_mak + echo "FUSE_CFLAGS=$fuse_cflags" >> $config_host_mak + echo "FUSE_LIBS=$fuse_libs" >> $config_host_mak +fi + if test "$tcg_interpreter" = "yes"; then QEMU_INCLUDES="-iquote \$(SRC_PATH)/tcg/tci $QEMU_INCLUDES" elif test "$ARCH" = "sparc64" ; then