From nobody Tue Feb 10 11:12:39 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1607627430; cv=none; d=zohomail.com; s=zohoarc; b=DfNAgUglXvempS2IJWl9xjwsZV5KVKwLAjBgmBxvBrQ1YNk8u4Wu+6BILVlPgpsxzo4dqoNn69Jf7EM+rHTzgWx0lb6rOID3I001iK7r+ZOcQNlDdSGXrxPSfP+dVy6jQmc7WAt5jh1jNXTNvVxqU9j9nO6rH3uQPHJBrINWXwk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607627430; h=Content-Type:Content-Transfer-Encoding:Cc: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=n9WUJiJmld4s3sHaKN9tOH+lZYonDBgJUTA33cJhtVE=; b=aoNkHBP1ZYI/q+10rEqFaeaAEQwqehPmqjk2fA9mr6H+E04qEHjLv5TlS7ECr6LHuT0Np+qhDk5RShrjXFJtyqprvpFKDPUM2qLXLfroAOkgBfvRe34lIMK3h+cLsQropgGYd2ihluQQ13SSDPs9dHv0iERWnD23fzAaqryz6qg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1607627430277589.2302573144198; Thu, 10 Dec 2020 11:10:30 -0800 (PST) Received: from localhost ([::1]:34274 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knRKd-0000CI-Gk for importer@patchew.org; Thu, 10 Dec 2020 14:10:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knREu-0005X2-Is for qemu-devel@nongnu.org; Thu, 10 Dec 2020 14:04:32 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:53096) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1knREr-0003RM-HS for qemu-devel@nongnu.org; Thu, 10 Dec 2020 14:04:32 -0500 Received: by mail-wm1-x335.google.com with SMTP id a6so5588008wmc.2 for ; Thu, 10 Dec 2020 11:04:29 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id h98sm11987061wrh.69.2020.12.10.11.04.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 11:04:19 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 3BE411FF8F; Thu, 10 Dec 2020 19:04:18 +0000 (GMT) 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=n9WUJiJmld4s3sHaKN9tOH+lZYonDBgJUTA33cJhtVE=; b=FcnOWv9XJJO/IKf9yje/bGJPghtScCuGsyvX2XSl+hXuI7RXHQPS0+t5J9osdm70GX TYo1u7h4qc4VlCevEbvgPZknR3VGbDVMcNGtdn8pIPx8ag1yT2Z7zjhZx2ZfFsLS2EX+ Ww36pWJJfZdeNNAN1IoGE9xumccaCsNTRAPCIXOsGFTwnXB5dgoz0HNEwQHxc1NISIh6 L6tlS59mGzRISJegr8S2uVRa1rEaRditiYLL377iuNrKHnbGzvghKElZUFSh0Y8Xpmfl PGOJMjOq0uqY+PPLr37qKvJNxHn1DU8++iLHXnPExU/xO6y4P4/XXilYzJoeB7VBmS3n IMVA== 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=n9WUJiJmld4s3sHaKN9tOH+lZYonDBgJUTA33cJhtVE=; b=fGnbwkZQuWfqi8XcW/n5D1GYEDPSiKRpQVXbBMLZuuEoHAfzSHQaw1kCgvSS7AqjPa j1gblK6s5Vwpe67zUaHqEr1VSogz7kJhp51BcGQZBAzs7g5wvpHnu32gAQ4EKkGH+tOp z5lUDi06Bqdbo0wl9DxAfX5aNNfV0QVjiJkyCtrn+QRnhAsuVpZJzXIqUATDX/ynMEU4 7s7HvINFV+ew73TS4tlsoB6UvpgQ81OwXLf0hh5xQmqONKh1l/fEcxyJk3azvjaskwH0 rO5ZSMo/H8jWK/Q/ymoq0vELYANdxV77R9upnEtLRq5ikOrwuScdOCS45HaMBTebEJd/ ZCCA== X-Gm-Message-State: AOAM530cBFq/UHYTTgyNRUSyN2NUfnjDQrcEpTgrlCBqomduZNEXr3R4 jVXxdAnSouVovBFiKqTsTg134g== X-Google-Smtp-Source: ABdhPJzvevohSKJ2xViIYAeqXL5VIvGTkAwwf6XfXZTrkO3TC4ag8NeIHM8vWvTUSTHdrZpGwONChA== X-Received: by 2002:a05:600c:410d:: with SMTP id j13mr9770573wmi.95.1607627068141; Thu, 10 Dec 2020 11:04:28 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v2 3/8] configure: move gettext detection to meson.build Date: Thu, 10 Dec 2020 19:04:12 +0000 Message-Id: <20201210190417.31673-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201210190417.31673-1-alex.bennee@linaro.org> References: <20201210190417.31673-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x335.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: fam@euphon.net, berrange@redhat.com, stefanb@linux.vnet.ibm.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , richard.henderson@linaro.org, f4bug@amsat.org, cota@braap.org, stefanha@redhat.com, marcandre.lureau@redhat.com, pbonzini@redhat.com, aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) This will allow meson to honour -Dauto_features=3Ddisabled later. Suggested-by: Paolo Bonzini Signed-off-by: Alex Benn=C3=A9e Acked-by: Paolo Bonzini --- configure | 19 +++---------------- meson_options.txt | 2 +- po/meson.build | 2 +- 3 files changed, 5 insertions(+), 18 deletions(-) diff --git a/configure b/configure index 8f2095a2db..46fdea88c7 100755 --- a/configure +++ b/configure @@ -448,7 +448,7 @@ libdaxctl=3D"" meson=3D"" ninja=3D"" skip_meson=3Dno -gettext=3D"" +gettext=3D"auto" =20 bogus_os=3D"no" malloc_trim=3D"auto" @@ -1014,9 +1014,9 @@ for opt do ;; --enable-vnc) vnc=3D"enabled" ;; - --disable-gettext) gettext=3D"false" + --disable-gettext) gettext=3D"disabled" ;; - --enable-gettext) gettext=3D"true" + --enable-gettext) gettext=3D"enabled" ;; --oss-lib=3D*) oss_lib=3D"$optarg" ;; @@ -2839,19 +2839,6 @@ if test "$xen_pci_passthrough" !=3D "disabled"; then fi fi =20 -########################################## -# gettext probe -if test "$gettext" !=3D "false" ; then - if has xgettext; then - gettext=3Dtrue - else - if test "$gettext" =3D "true" ; then - feature_not_found "gettext" "Install xgettext binary" - fi - gettext=3Dfalse - fi -fi - ########################################## # X11 probe if $pkg_config --exists "x11"; then diff --git a/meson_options.txt b/meson_options.txt index f6f64785fe..191e848600 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -9,7 +9,7 @@ option('sphinx_build', type : 'string', value : '', =20 option('docs', type : 'feature', value : 'auto', description: 'Documentations build support') -option('gettext', type : 'boolean', value : true, +option('gettext', type : 'feature', value : 'auto', description: 'Localization of the GTK+ user interface') option('install_blobs', type : 'boolean', value : true, description: 'install provided firmware blobs') diff --git a/po/meson.build b/po/meson.build index 1387fd979a..a863f0575f 100644 --- a/po/meson.build +++ b/po/meson.build @@ -1,6 +1,6 @@ i18n =3D import('i18n') =20 -if get_option('gettext') +if find_program('xgettext', required: get_option('gettext')).found() i18n.gettext(meson.project_name(), args: '--msgid-bugs-address=3Dqemu-devel@nongnu.org', preset: 'glib') --=20 2.20.1