Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1qLtVL-0003XM-P5 for mharc-grub-devel@gnu.org; Tue, 18 Jul 2023 18:49:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qLtVK-0003XC-7R for grub-devel@gnu.org; Tue, 18 Jul 2023 18:49:14 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qLtVH-00051h-N2 for grub-devel@gnu.org; Tue, 18 Jul 2023 18:49:14 -0400 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2b708e49059so98411931fa.3 for ; Tue, 18 Jul 2023 15:49:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689720549; x=1692312549; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fWEz0XjytlOBhu8EZhUA/kP46tArIqtNWY+iPXecL98=; b=O0Suns3NFCatFrYKvd3EGAwc0eWqBKtAP8cEWj8X5uMVfXOyWPb2YEHxQ2EKDvs8SW wmfcO5h4+AneBVagkvqQVtrwGlnObUp+Kpm1ko9/8lu4VGfrN1kAU9Ii4COSO6eLFT9p vV2dK/ePWciSXtCWKmJIQ2iZzqO8Xx8JnOGeR+klEUBkt7azuGblL3ULAiNOnAFHNbxX efv+NipTievGQQQRxlXuD0nirDYlS7Q78a75Q/8YMxG5BqsxL6YDP1ahxh2hjkuezIKV y9rcCePfG+zjafZD35zsPvCCNF1FaIJdkz30gUa1TBMvcFIA/TX3r1mJnnjXg7f/td7n gwVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689720549; x=1692312549; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fWEz0XjytlOBhu8EZhUA/kP46tArIqtNWY+iPXecL98=; b=dlyZuy2kDqeQ8Ju4ldv59R9HElI/43+VOJQ553BVl7RJWUkL5E3NRMZlX8R45VtfSP dq5zZKr9Jgf35RYkym0jnGsuiR3/oGpnW2W2ldrvLD3AFxVQXXSR+JkdoF1BkZ+v+uaZ WUGK5vlREJgA9w8kNcPcEgaL56LkULnGECzCcrifjKzLztun7DwpLI8yQOJySnTcMWli oQS+TJisRCodgD5mVDTR7aneczbzVRUzPQQDaIBiWSwDE6ZQfcoMtSJVpxOM57JeIK5c PC0vbAXEtdARjCt4Nvh0u8r46dgVBWzh+m1jD5mqGnWn4CZLthyGgIUmUe+khXRVQGYJ hw1g== X-Gm-Message-State: ABy/qLbZc63X5iTVZyG0lBykOr7q4vE2q3Hj1daU64fOphy2Bb/dTV0y C+sAIKeKii3WXD596Wilkay5Vl6KnCU= X-Google-Smtp-Source: APBJJlF+eoYzN/H4KBqR2ETpXwqHCELWKUVc8A98gYJBeoEZ/0V4l10CxlGlGplv+IFfD1CxLt0Yvw== X-Received: by 2002:a2e:9dc4:0:b0:2b9:4b15:6dd7 with SMTP id x4-20020a2e9dc4000000b002b94b156dd7mr2784853ljj.53.1689720549328; Tue, 18 Jul 2023 15:49:09 -0700 (PDT) Received: from fedora.36.pl (89-73-114-122.dynamic.chello.pl. [89.73.114.122]) by smtp.gmail.com with ESMTPSA id e1-20020a2e8ec1000000b002b6e7276ab7sm712967ljl.93.2023.07.18.15.49.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jul 2023 15:49:09 -0700 (PDT) From: =?UTF-8?q?Micha=C5=82=20Grzelak?= To: grub-devel@gnu.org Cc: dkiper@net-space.pl, =?UTF-8?q?Micha=C5=82=20Grzelak?= Subject: [PATCH 1/1] configure.ac: Fix SDL2 typo by referencing value Date: Wed, 19 Jul 2023 00:48:21 +0200 Message-Id: <20230718224821.9928-2-mchl.grzlk@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20230718224821.9928-1-mchl.grzlk@gmail.com> References: <20230718224821.9928-1-mchl.grzlk@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::232; envelope-from=mchl.grzlk@gmail.com; helo=mail-lj1-x232.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, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2023 22:49:14 -0000 During configuration of SDL2, variable enable_grub_emu_sdl2 is checked whether to throw an error message. Howerever, error could not happen because two unequal strings were compared. Fix this by referencing value of enable_grub_emu_sdl2, not name. Fixes: 17d6ac1a7 (emu: Add SDL2 support) Signed-off-by: MichaƂ Grzelak --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 01500ffdf..27c5918fa 100644 --- a/configure.ac +++ b/configure.ac @@ -1609,7 +1609,7 @@ if test "$platform" = emu; then AC_SUBST(HAVE_SDL2)], [grub_emu_sdl2_excuse="libSDL2 libraries are required to build \`grub-emu' with SDL2 support"]) [fi] - if test x"enable_grub_emu_sdl2" = xyes && test x"$grub_emu_sdl2_excuse" != x ; then + if test x"$enable_grub_emu_sdl2" = xyes && test x"$grub_emu_sdl2_excuse" != x ; then AC_MSG_ERROR([SDL2 support for grub-emu was explicitly requested but can't be compiled ($grub_emu_sdl2_excuse)]) fi if test x"$grub_emu_sdl2_excuse" = x ; then -- 2.37.3