From nobody Sun Feb 8 05:41:59 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; 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 207.211.31.81 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=1594894637; cv=none; d=zohomail.com; s=zohoarc; b=Kfj/N16vha2psYtjueuQevD/rtZ6nthnEDQpRckbuZ/Nql12pq1skWSVCE4/pw5nA26bVoAiYQdgx6+Heaj3Gl7vftF4nHaDYRiC62gPw31j0dsHSencX6CYWrCh08Xe601z7vC8DBzXIH8gZaFc9rivxLL09Pq7NKJNGU89tJc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594894637; 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=uTivqm6AsLwA94ubfgtQSvX6doWYkTd+XlzE4hyNbxE=; b=LSSncM7KoEVXYaqxd36DKAwGvP6uY6Bm/vvpSmc8DlsOR7b3dr3qDKda4t1lEUjPPLpt+a8qFrV3QW0tJy40AFVdwE9P2dAjSbzzckDAKWOCvUBtWyOZCI9hUEsfUy1pKhoXm1bGs2rb6//eE9w+gKgl/aoJyqOnATYs/I/wyBw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 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 [207.211.31.81]) by mx.zohomail.com with SMTPS id 1594894637809485.5962676264878; Thu, 16 Jul 2020 03:17:17 -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-498-Apu3JXulOoy034w3_S7pVg-1; Thu, 16 Jul 2020 06:08:17 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E7C0D8015FB; Thu, 16 Jul 2020 10:08:11 +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 C8DC172E4A; Thu, 16 Jul 2020 10:08:11 +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 95E9096243; Thu, 16 Jul 2020 10:08:11 +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 06GA3QeI017196 for ; Thu, 16 Jul 2020 06:03:26 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1E6982B6E2; Thu, 16 Jul 2020 10:03:26 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8D8882B6DB for ; Thu, 16 Jul 2020 10:03:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594894636; 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=uTivqm6AsLwA94ubfgtQSvX6doWYkTd+XlzE4hyNbxE=; b=ARLPCT+QILPVfUc7U+Iwb1GAvBMaA2nmYf3L9tGxx2wofGa9ndsjq1lHEoYsJg4mArD3Kj LTHM4i1hY8AvmBrpymc5QFciuR4EIN592E8d5giMYk/bKqduzE+86+WA7EAOyxxygX0bvi GkmnVShFxlMzPMZyVAImogvRCW4rmUY= X-MC-Unique: Apu3JXulOoy034w3_S7pVg-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 124/351] meson: add sysctl_config build option Date: Thu, 16 Jul 2020 11:56:00 +0200 Message-Id: <6b35283fd1ca20ef3efa5dbb109c025e83dedf9c.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.11 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 | 2 -- m4/virt-sysctl.m4 | 43 ------------------------------------------- meson.build | 6 ++++++ meson_options.txt | 1 + 4 files changed, 7 insertions(+), 45 deletions(-) delete mode 100644 m4/virt-sysctl.m4 diff --git a/configure.ac b/configure.ac index f5b567806e3..00b547b1a75 100644 --- a/configure.ac +++ b/configure.ac @@ -90,11 +90,9 @@ dnl Miscellaneous checks dnl =20 LIBVIRT_ARG_TLS_PRIORITY -LIBVIRT_ARG_SYSCTL_CONFIG =20 =20 LIBVIRT_CHECK_TLS_PRIORITY -LIBVIRT_CHECK_SYSCTL_CONFIG =20 =20 dnl Need to test if pkg-config exists diff --git a/m4/virt-sysctl.m4 b/m4/virt-sysctl.m4 deleted file mode 100644 index 3a59e3e6e66..00000000000 --- a/m4/virt-sysctl.m4 +++ /dev/null @@ -1,43 +0,0 @@ -dnl sysctl config check -dnl -dnl Copyright (C) 2016 Red Hat, Inc. -dnl -dnl This library is free software; you can redistribute it and/or -dnl modify it under the terms of the GNU Lesser General Public -dnl License as published by the Free Software Foundation; either -dnl version 2.1 of the License, or (at your option) any later version. -dnl -dnl This library is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -dnl Lesser General Public License for more details. -dnl -dnl You should have received a copy of the GNU Lesser General Public -dnl License along with this library. If not, see -dnl . -dnl - -AC_DEFUN([LIBVIRT_ARG_SYSCTL_CONFIG], [ - LIBVIRT_ARG_WITH([SYSCTL], [Whether to install sysctl configs], [check]) -]) - -AC_DEFUN([LIBVIRT_CHECK_SYSCTL_CONFIG], [ - AC_MSG_CHECKING([for whether to install sysctl config]) - if test "$with_sysctl" =3D "yes" || test "$with_sysctl" =3D "check" - then - case $host in - *-*-linux*) - with_sysctl=3Dyes - ;; - *) - if test "$with_sysctl" =3D "yes"; then - AC_MSG_ERROR([No sysctl configuration supported for $host]) - else - with_sysctl=3Dno - fi - ;; - esac - fi - AM_CONDITIONAL([WITH_SYSCTL], test "$with_sysctl" =3D "yes") - AC_MSG_RESULT($with_sysctl) -]) diff --git a/meson.build b/meson.build index e7efcb82b9b..7de11d8bf38 100644 --- a/meson.build +++ b/meson.build @@ -2173,6 +2173,12 @@ if not get_option('pm_utils').disabled() endif endif =20 +if not get_option('sysctl_config').disabled() and host_machine.system() = =3D=3D 'linux' + conf.set('WITH_SYSCTL', 1) +elif get_option('sysctl_config').enabled() + error('sysctl configuration is supported only on linux') +endif + =20 # define top include directory =20 diff --git a/meson_options.txt b/meson_options.txt index 7d18f80d61f..9da3455e788 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -100,3 +100,4 @@ option('login_shell', type: 'feature', value: 'auto', d= escription: 'build virt-l option('nss', type: 'feature', value: 'auto', description: 'enable Name Se= rvice Switch plugin for resolving guest IP addresses') option('numad', type: 'feature', value: 'auto', description: 'use numad to= manage CPU placement dynamically') option('pm_utils', type: 'feature', value: 'auto', description: 'use pm-ut= ils for power management') +option('sysctl_config', type: 'feature', value: 'auto', description: 'Whet= her to install sysctl configs') --=20 2.26.2