blob: a3dc381882516779739ef5b3e677d91481f1347e [file] [log] [blame]
Andrew Geisslerc5535c92023-01-27 16:10:19 -06001From 3c461786feb1d5aa1ed2a911942a5f9fbc8b8086 Mon Sep 17 00:00:00 2001
2From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
3Date: Tue, 24 Jan 2023 17:38:43 +0100
4Subject: [libgpiod v1.6.x][PATCH] build: don't expect automake to set $PYTHON
5
6It seems that the implementation of AM_PATH_PYTHON() changed in automake
7recently and no longer sets $PYTHON variable which breaks the build on
8some systems.
9
10We know we use python3 so use python3-config explicitly.
11
12Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
13---
14Upstream-Status: Accepted
15
16 configure.ac | 4 ++--
17 1 file changed, 2 insertions(+), 2 deletions(-)
18
19diff --git a/configure.ac b/configure.ac
20index 3149384..0460810 100644
21--- a/configure.ac
22+++ b/configure.ac
23@@ -204,9 +204,9 @@ then
24 AC_MSG_ERROR([python3-config not found - needed for python bindings])
25 fi
26 AS_IF([test -z "$PYTHON_CPPFLAGS"],
27- [AC_SUBST(PYTHON_CPPFLAGS, [`$PYTHON-config --includes`])])
28+ [AC_SUBST(PYTHON_CPPFLAGS, [`python3-config --includes`])])
29 AS_IF([test -z "$PYTHON_LIBS"],
30- [AC_SUBST(PYTHON_LIBS, [`$PYTHON-config --libs`])])
31+ [AC_SUBST(PYTHON_LIBS, [`python3-config --libs`])])
32 fi
33
34 AC_CHECK_PROG([has_doxygen], [doxygen], [true], [false])
35--
362.37.2
37