Our Cython code only builds properly on Cython 0.16 or higher so
verify that a proper version of Cython is installed if we are
building the Python bindings.

Signed-off-by: Paul Moore <[email protected]>
---
 configure |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 8866fda..50bdcca 100755
--- a/configure
+++ b/configure
@@ -201,11 +201,15 @@ while [[ $# -gt 0 ]]; do
        esac
 done
 
-# validate the options
+#
+# validate the command line options
+#
+
 if [[ -e "$opt_prefix" && ! -d "$opt_prefix" ]]; then
        msg_error "install prefix ($opt_prefix) is not a directory"
        exit 1
 fi
+
 if [[ -z $opt_libdir ]]; then
        opt_libdir="$opt_prefix/lib"
 fi
@@ -213,11 +217,18 @@ if [[ -e "$opt_libdir" && ! -d "$opt_libdir" ]]; then
        msg_error "libdir ($opt_libdir) is not a directory"
        exit 1
 fi
+
 if [[ "$opt_bindings_python" = "yes" ]]; then
        if ! test_deps cython; then
                msg_error "python bindings require the cython package"
                exit 1
        fi
+       cython_ver=$(cython -V 2>&1 | cut -d' ' -f 3)
+       if [[ $(echo $cython_ver | cut -d'.' -f 1) -lt 1 &&
+             $(echo $cython_ver | cut -d'.' -f 2) -lt 16 ]]; then
+               msg_error "python bindings require cython 0.16 or higher"
+               exit 1
+       fi
 fi
 
 #


------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
libseccomp-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libseccomp-discuss

Reply via email to