From: Joel Savitz Date: Fri, 4 Oct 2019 16:11:26 +0000 (-0400) Subject: build: check for python-config in configure X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9ed02fc793b332773658f3ba09f45a058e75b0a8;p=qemu-gpiodev%2Flibgpiod.git build: check for python-config in configure Currently, configure succeeds when python is installed without its development components, i.e. python-config and headers. The subsequent make will fail when gcc cannot locate Python.h. This patch fixes that behavior by throwing an error at configure-time if python-config cannot be found. Signed-off-by: Joel Savitz Signed-off-by: Bartosz Golaszewski --- diff --git a/configure.ac b/configure.ac index 41321c1..066c1ad 100644 --- a/configure.ac +++ b/configure.ac @@ -183,6 +183,8 @@ if test "x$with_bindings_python" = xtrue then AM_PATH_PYTHON([3.0], [], [AC_MSG_ERROR([python3 not found - needed for python bindings])]) + AC_CHECK_FILE(["$PYTHON-config"], [], + [AC_MSG_ERROR([python3-config not found - needed for python bindings])]) AS_IF([test -z "$PYTHON_CPPFLAGS"], [AC_SUBST(PYTHON_CPPFLAGS, [`$PYTHON-config --includes`])]) AS_IF([test -z "$PYTHON_LIBS"],