From: joelsavitz@gmail.com
To: linux-gpio@vger.kernel.org
Cc: Joel Savitz <joelsavitz@gmail.com>, fedora-rpi@googlegroups.com
Subject: [libgpiod] [PATCH] build: check for python-config in configure
Date: Fri, 4 Oct 2019 12:11:26 -0400 [thread overview]
Message-ID: <20191004161126.13814-1-joelsavitz@gmail.com> (raw)
From: Joel Savitz <joelsavitz@gmail.com>
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 <joelsavitz@gmail.com>
---
configure.ac | 2 ++
1 file changed, 2 insertions(+)
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"],
--
2.21.0
reply other threads:[~2019-10-04 16:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191004161126.13814-1-joelsavitz@gmail.com \
--to=joelsavitz@gmail.com \
--cc=fedora-rpi@googlegroups.com \
--cc=linux-gpio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).