From nobody Sun Feb 8 17:21:21 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1540997394813402.63680058291686; Wed, 31 Oct 2018 07:49:54 -0700 (PDT) Received: from localhost ([::1]:60043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHrof-0007NA-8y for importer@patchew.org; Wed, 31 Oct 2018 10:49:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHrNS-0001X4-Mx for qemu-devel@nongnu.org; Wed, 31 Oct 2018 10:21:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHrNO-0007c8-Rb for qemu-devel@nongnu.org; Wed, 31 Oct 2018 10:21:46 -0400 Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]:45546) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHrNN-0007Nf-3K for qemu-devel@nongnu.org; Wed, 31 Oct 2018 10:21:42 -0400 Received: by mail-oi1-x232.google.com with SMTP id p144-v6so9840378oic.12 for ; Wed, 31 Oct 2018 07:21:11 -0700 (PDT) Received: from localhost (76-251-165-188.lightspeed.austtx.sbcglobal.net. [76.251.165.188]) by smtp.gmail.com with ESMTPSA id v131-v6sm239084oig.27.2018.10.31.07.21.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Oct 2018 07:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gM9bIEC86ruumo18/CYbGRbIeu+lifiq4ffb5gYPTqI=; b=XWUMv5+9UxRVkQR6V6+jXhOQ78bRa6+/4pKOpeYZgRhZLFmcwBOUceTp8IESgbbr6v DP8ULZauIu44vWfYKYL+fP8cBE9G+7Hizin9QFxsW39d/dtlrVogFwBiglMBDtZidFKy MJBFoayC2vJ1GkoNDoj5gK3UvDDkLw99t2cfKxYq4dqQlhMu5Cadj924tVJ/m/JoTofl Sy86nytcQuI2RhXiOgd7RZJOEST+/jKKCI8FNOjHFtz17qC068jdFb7GTqJH3DwWqVH/ iEeoDw8IR7JTUu8uo+DmOMM+b4xV8zBiZotHkxe0p1dFlIFTE+ZiJFQH6rI3uV/Y4wO0 z8zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=gM9bIEC86ruumo18/CYbGRbIeu+lifiq4ffb5gYPTqI=; b=pKg6yyZrbPclmb1LShZELoXWKAQKzBjpEDa7cC1BgGa/V/BILYUAhlJamJ9AT6riIA 2xXXY9psvNeEvpPy4A6cOWFXEBFX1lXZFJrnMzf7hAANPWZlDjVLVJ02MHt7HI+hMUOi J2LXSC2MB/OYnMNFKnJJmgfY5kRVd/Bj4kAvmLI1DFgEU6atwREprpCNOr7VYbpMDY5+ Jg8U7sl+PxADzNxZqBeTL7ns3BCDC2sRxI1aVh++LdS9riBBGfV/88gv8TcqkseW77c4 9eYk0SzpK6mmyDrfK/n1Ak8OTfDoIJBO81S+18BtfaIimVvrDHPlxJmkqZgQWpySRWTu Of0w== X-Gm-Message-State: AGRZ1gJmyviXjhU+dniW3YG4SekVZR6ofzDr3iqhwOxnst4RnR7C36gd gqv5s6Nt0JrruOXSt7B0bkldvYSC X-Google-Smtp-Source: AJdET5cVroG/Q/Pgghl56f/z8gI1zZP2lqWIjUj6bg+c7GdZATFJ/burtKr8dqLs++KTCxFa9KvMKQ== X-Received: by 2002:aca:5f43:: with SMTP id t64-v6mr1780649oib.115.1540995670373; Wed, 31 Oct 2018 07:21:10 -0700 (PDT) From: Michael Roth To: qemu-devel@nongnu.org Date: Wed, 31 Oct 2018 09:19:05 -0500 Message-Id: <20181031141925.30026-5-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181031141925.30026-1-mdroth@linux.vnet.ibm.com> References: <20181031141925.30026-1-mdroth@linux.vnet.ibm.com> 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: 2607:f8b0:4864:20::232 Subject: [Qemu-devel] [PULL v3 04/24] configure: add test for libudev 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: peter.maydell@linaro.org, =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Tom=C3=A1=C5=A1 Golembiovsk=C3=BD Signed-off-by: Tom=C3=A1=C5=A1 Golembiovsk=C3=BD Reviewed-by: Marc-Andr=C3=A9 Lureau *make libudev optional to avoid breaking existing build/test environments *disable libudev for --static builds Signed-off-by: Michael Roth --- configure | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/configure b/configure index a898e21c68..61276982c6 100755 --- a/configure +++ b/configure @@ -474,6 +474,7 @@ libxml2=3D"" docker=3D"no" debug_mutex=3D"no" libpmem=3D"" +libudev=3D"no" =20 # cross compilers defaults, can be overridden with --cross-cc-ARCH cross_cc_aarch64=3D"aarch64-linux-gnu-gcc" @@ -870,6 +871,7 @@ Linux) vhost_vsock=3D"yes" QEMU_INCLUDES=3D"-I\$(SRC_PATH)/linux-headers -I$(pwd)/linux-headers $QE= MU_INCLUDES" supported_os=3D"yes" + libudev=3D"yes" ;; esac =20 @@ -5609,6 +5611,17 @@ if test "$libnfs" !=3D "no" ; then fi fi =20 +########################################## +# Do we have libudev +if test "$libudev" !=3D "no" ; then + if $pkg_config libudev && test "$static" !=3D "yes"; then + libudev=3D"yes" + libudev_libs=3D$($pkg_config --libs libudev) + else + libudev=3D"no" + fi +fi + # Now we've finished running tests it's OK to add -Werror to the compiler = flags if test "$werror" =3D "yes"; then QEMU_CFLAGS=3D"-Werror $QEMU_CFLAGS" @@ -6033,6 +6046,7 @@ echo "VxHS block device $vxhs" echo "capstone $capstone" echo "docker $docker" echo "libpmem support $libpmem" +echo "libudev $libudev" =20 if test "$sdl_too_old" =3D "yes"; then echo "-> Your SDL version is too old - please upgrade to have SDL support" @@ -6868,6 +6882,11 @@ if test "$docker" !=3D "no"; then echo "HAVE_USER_DOCKER=3Dy" >> $config_host_mak fi =20 +if test "$libudev" !=3D "no"; then + echo "CONFIG_LIBUDEV=3Dy" >> $config_host_mak + echo "LIBUDEV_LIBS=3D$libudev_libs" >> $config_host_mak +fi + # use included Linux headers if test "$linux" =3D "yes" ; then mkdir -p linux-headers --=20 2.17.1