summaryrefslogtreecommitdiff
path: root/games-fps/chocolate-doom/files/chocolate-doom-3.0.1-Fix-Python-check.patch
blob: 8d4f169bd03e8bfd515dea48e0f344c8964d7d92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
From ab1a38d8e902baebc7183fb511bd58c50e2b4571 Mon Sep 17 00:00:00 2001
From: William Breathitt Gray <vilhelm.gray@gmail.com>
Date: Mon, 24 Aug 2020 09:03:57 -0400
Subject: [PATCH] Fix Python check for doc, bash-completion, fonts, and icons
 options

Fixes: cfc56fa6 ("Introduce configure options for bash-completion, doc, fonts, and icons")
---
 configure.ac | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 9bef517a..4dbd2db7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,7 +40,7 @@ AC_ARG_ENABLE([bash-completion],
 AS_HELP_STRING([--disable-bash-completion], [Disable bash-completion])
 )
 AS_IF([test "x$enable_bash_completion" != xno], [
-    AS_IF([test HAVE_PYTHON = false], [
+    AS_IF([test "x$HAVE_PYTHON" = xfalse], [
         AC_MSG_WARN([Building bash-completion requires Python, but Python not found])
         enable_bash_completion=no
     ])
@@ -51,7 +51,7 @@ AC_ARG_ENABLE([doc],
 AS_HELP_STRING([--disable-doc], [Disable documentation])
 )
 AS_IF([test "x$enable_doc" != xno], [
-    AS_IF([test HAVE_PYTHON = false], [
+    AS_IF([test "x$HAVE_PYTHON" = xfalse], [
         AC_MSG_WARN([Building documentation requires Python, but Python not found])
         enable_doc=no
     ])
@@ -62,7 +62,7 @@ AC_ARG_ENABLE([fonts],
 AS_HELP_STRING([--disable-fonts], [Disable fonts])
 )
 AS_IF([test "x$enable_fonts" != xno], [
-    AS_IF([test HAVE_PYTHON = false], [
+    AS_IF([test "x$HAVE_PYTHON" = xfalse], [
         AC_MSG_WARN([Building fonts require Python, but Python not found])
         enable_fonts=no
     ])
@@ -73,7 +73,7 @@ AC_ARG_ENABLE([icons],
 AS_HELP_STRING([--disable-icons], [Disable icons])
 )
 AS_IF([test "x$enable_icons" != xno], [
-    AS_IF([test HAVE_PYTHON = false], [
+    AS_IF([test "x$HAVE_PYTHON" = xfalse], [
         AC_MSG_WARN([Building icons require Python, but Python not found])
         enable_icons=no
     ])
-- 
2.28.0