From nobody Sun Apr 28 14:06:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1660931491; cv=none; d=zohomail.com; s=zohoarc; b=j/20KM6SLChBVnXWc5ocCaODPtYi7WN7c6dMnDLYX94vtd0gngEbGshvE5bo5oJM8cgH3IFknGEFqKtvf6Kat3OJg5jKkkpdObGNP0lVTxFRWMvHQJg5PhzMMztHuh6heFwak8W8FQ0Y+RQIohs8TObWAsgpTqOAkpC6VQ2WC08= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1660931491; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=pM+IyLrEIm5Ms4IYg1Q/BNY6etFwZzdgve39XpewSVw=; b=iKljkBQU4ZXvHusw8YqQgMWd70Meoq4A4icr2C/mN8PDcfhX1eFUnGwLXSTD0AkKsk0WjRP6JfSHyHGlPdRoEDtRJBOFedaq8+JmHm1L1XqIwGdf+8wmdGGqdl6JkK/HGOCl2qkXXdSnTNSDJTMDGgwU1eCkPaP4gZchV2g2gUM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 166093149113262.65424273968881; Fri, 19 Aug 2022 10:51:31 -0700 (PDT) Received: from localhost ([::1]:36354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oP69a-0000sS-4f for importer@patchew.org; Fri, 19 Aug 2022 13:51:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oP5Oc-00012u-Ls for qemu-devel@nongnu.org; Fri, 19 Aug 2022 13:02:58 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:36305) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oP5Oa-00027Y-Ne for qemu-devel@nongnu.org; Fri, 19 Aug 2022 13:02:57 -0400 Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-567-bJ1_OROQNj2kRlfBd0sc-Q-1; Fri, 19 Aug 2022 13:02:54 -0400 Received: by mail-ej1-f71.google.com with SMTP id oz39-20020a1709077da700b007313bf43f0dso1726316ejc.0 for ; Fri, 19 Aug 2022 10:02:54 -0700 (PDT) Received: from goa-sendmail ([93.56.160.208]) by smtp.gmail.com with ESMTPSA id c14-20020aa7c98e000000b0043bea0a48d0sm3353841edt.22.2022.08.19.10.02.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Aug 2022 10:02:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660928576; h=from:from: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; bh=pM+IyLrEIm5Ms4IYg1Q/BNY6etFwZzdgve39XpewSVw=; b=FKYGO2BM6hoRwoK+ugq/jFGskg3ZvkQnwW+J3JHgBEn/o5dl7mJkgwJoUPRqJBsOoz1nv8 OSuhWKC/53B/bJBOqFs2d4A9m2avZIpSK9OSKhVPcwYQQn+iF2+baUWvUnEZODU0L5HCMg Zb59nWLF49spzH0jYIAd4O7cFkfqifM= X-MC-Unique: bJ1_OROQNj2kRlfBd0sc-Q-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc; bh=pM+IyLrEIm5Ms4IYg1Q/BNY6etFwZzdgve39XpewSVw=; b=u82JUUwn0fvqRxzwLINyXoaFarJcZpIo59pSjtHmfjmT2OAOENX7LW3PKTy1vmpQmv BcBLsn2+qZrF6EdvKuFJAn+AKlhE8ss/70G0c/nX97T/xAJsIT9cBPBzpQptVniIKpnK LP/oiaKRzJYkEhTjvA3EDk9ywLJh9hhN/bZzPPYzNXvuJaXH9qyKeY6rxmLxFPi3hi7v pcFSLZg4x43rcyVM2fYXrfaQybkPByDzVMHAQtzxuqojioF91xGvOHNnlyD1VtjCmydw k1pbnEHQsyeSRJxy8lDZo5YSd9RhNg9puHBDerhHgfg3Jp0lAg3RVxQVaGE8skdz6LAi D0vw== X-Gm-Message-State: ACgBeo0QEkNpz/KgYX+r4kitPAYUAzcRj4IstkwBU8wnYA3m07TN7Sao wxyzaCDStIvquSliB10caBe+WZU35/CUwhUK7IKggmn30NbK2Fdwc9KOXc7+etWjCoK13K8wLRd dKjO9qniVLCLFPKIiXGMu0OlnIyXR82AR1jZvvY6qGEWxvPss9KIOOG4Rhgn7f3NbqJ8= X-Received: by 2002:a05:6402:4392:b0:43e:5033:40f8 with SMTP id o18-20020a056402439200b0043e503340f8mr6831290edc.245.1660928573010; Fri, 19 Aug 2022 10:02:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ah9c0t08s2FYeGST3w217l/pw08vCmgE3LnVQRl06y8yNuvHu//M8chgZad8TgJ1vLV7KFA== X-Received: by 2002:a05:6402:4392:b0:43e:5033:40f8 with SMTP id o18-20020a056402439200b0043e503340f8mr6831261edc.245.1660928572668; Fri, 19 Aug 2022 10:02:52 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH] configure: improve error for ucontext coroutine backend Date: Fri, 19 Aug 2022 19:02:51 +0200 Message-Id: <20220819170251.227526-1-pbonzini@redhat.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1660931492788100001 Content-Type: text/plain; charset="utf-8" Instead of using feature_not_found(), which is not a good match because there is no "remedy" to fix the lack of makecontext(), just print a custom error. This happens to remove the last use of feature_not_found(), so remove the definition and the documentation. Signed-off-by: Paolo Bonzini Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- configure | 11 +---------- docs/devel/build-system.rst | 5 ----- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/configure b/configure index 72ab03f11a..575dde1c1f 100755 --- a/configure +++ b/configure @@ -1468,15 +1468,6 @@ if test "$tcg" =3D "enabled"; then git_submodules=3D"$git_submodules tests/fp/berkeley-softfloat-3" fi =20 -feature_not_found() { - feature=3D$1 - remedy=3D$2 - - error_exit "User requested feature $feature" \ - "configure was not able to find it." \ - "$remedy" -} - # --- # big/little endian test cat > $TMPC << EOF @@ -1639,7 +1630,7 @@ else ;; ucontext) if test "$ucontext_works" !=3D "yes"; then - feature_not_found "ucontext" + error_exit "'ucontext' backend requested but makecontext not availab= le" fi ;; sigaltstack) diff --git a/docs/devel/build-system.rst b/docs/devel/build-system.rst index 431caba7aa..1894721743 100644 --- a/docs/devel/build-system.rst +++ b/docs/devel/build-system.rst @@ -99,11 +99,6 @@ developers in checking for system features: Write a minimal C program main() function to the temporary file indicated by $TMPC =20 -``feature_not_found $NAME $REMEDY`` - Print a message to stderr that the feature $NAME was not available - on the system, suggesting the user try $REMEDY to address the - problem. - ``error_exit $MESSAGE $MORE...`` Print $MESSAGE to stderr, followed by $MORE... and then exit from the configure script with non-zero status --=20 2.37.1