From 17ede4c0d92206a501f9181f634dfb2301fee51e Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 12 May 2016 16:08:46 -0400 Subject: [PATCH] Fix: configure: forbid Python bindings if shared libraries are disabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: #977 Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index ff07d34d5..8d03c5f41 100644 --- a/configure.ac +++ b/configure.ac @@ -415,6 +415,7 @@ AM_CONDITIONAL([PYTHON_BINDING], [test "x${enable_python_binding:-yes}" = xyes]) if test "x${enable_python_binding:-yes}" = xyes; then AX_PKG_SWIG($swig_version, [], [ AC_MSG_ERROR([SWIG $swig_version or newer is needed]) ]) + AS_IF([test x$enable_shared = xno], [ AC_MSG_ERROR([Python bindings require shared libraries.]) ]) AM_PATH_PYTHON([3.0]) AC_ARG_VAR([PYTHON_INCLUDE], [Include flags for python, bypassing python-config]) -- 2.34.1