aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2019-11-03 10:54:10 -0400
committerDavid Bremner <david@tethera.net>2019-12-03 08:12:30 -0400
commit3aaa8cfe941bd59730ae04df46da6aa3181f85e5 (patch)
tree5a69d4013e968d06be89de19fb3733034f94a64e
parente8cb7c7f60c86cb70df904c624e3f636cb6a0041 (diff)
configure: check for python cffi and pytest modules
This is needed to build the new python bindings, and run their tests.
-rwxr-xr-xconfigure21
1 files changed, 21 insertions, 0 deletions
diff --git a/configure b/configure
index 3c148e12..b467643c 100755
--- a/configure
+++ b/configure
@@ -671,6 +671,15 @@ if [ $have_python -eq 0 ]; then
errors=$((errors + 1))
fi
+printf "Checking for python3 cffi... "
+if "$python" -c 'import sys,cffi; assert sys.version_info >= (3,0)' >/dev/null 2>&1; then
+ printf "Yes.\n"
+ have_python3_cffi=1
+else
+ printf "No.\n"
+ have_python3_cffi=0
+fi
+
printf "Checking for valgrind development files... "
if pkg-config --exists valgrind; then
printf "Yes.\n"
@@ -1223,6 +1232,12 @@ HAVE_GETLINE = ${have_getline}
# building/testing ruby bindings.
HAVE_RUBY_DEV = ${have_ruby_dev}
+# Is the python cffi package available?
+HAVE_PYTHON3_CFFI = ${have_python3_cffi}
+
+# Is the python pytest package available?
+HAVE_PYTHON3_PYTEST = ${have_python3_pytest}
+
# Whether the strcasestr function is available (if not, then notmuch will
# build its own version)
HAVE_STRCASESTR = ${have_strcasestr}
@@ -1376,6 +1391,12 @@ NOTMUCH_RUBY=${RUBY}
# building/testing ruby bindings.
NOTMUCH_HAVE_RUBY_DEV=${have_ruby_dev}
+# Is the python cffi package available?
+NOTMUCH_HAVE_PYTHON3_CFFI=${have_python3_cffi}
+
+# Is the python pytest package available?
+NOTMUCH_HAVE_PYTHON3_PYTEST=${have_python3_pytest}
+
# Platform we are run on
PLATFORM=${platform}
EOF