From 2c2e6758c32522816f3291c6d1a448bb15d5fd03 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Tue, 20 Mar 2012 22:50:03 +0100 Subject: Move cython detection directly after SWIG detection in configure.ac --- configure.ac | 51 +++++++++++++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/configure.ac b/configure.ac index e463336..91b403e 100644 --- a/configure.ac +++ b/configure.ac @@ -93,6 +93,31 @@ fi AM_CONDITIONAL([HAVE_SWIG],[test "x$SWIG" != "xfalse"]) AC_SUBST([SWIG_SUB]) +# Cython Python Bindings +AC_ARG_WITH([cython], + [AS_HELP_STRING([--without-cython], + [build Python bindings using Cython (default is yes)])], + [build_cython=false], + [build_cython=true]) +if test "$build_cython" = "true"; then + AM_PATH_PYTHON(2.3) + AC_PROG_CYTHON(0.12.1) + CYTHON_PYTHON +else + CYTHON=false +fi +if [test "x$CYTHON" != "xfalse"]; then + CYTHON_SUB=cython + CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist)/plist/cython + AC_SUBST([CYTHON_PLIST_INCLUDE_DIR]) + cython_python_bindings=yes +else + CYTHON_SUB= + cython_python_bindings=no +fi +AM_CONDITIONAL([HAVE_CYTHON],[test "x$CYTHON_SUB" = "xcython"]) +AC_SUBST([CYTHON_SUB]) + AC_ARG_ENABLE([openssl], [AS_HELP_STRING([--disable-openssl], [Do not look for OpenSSL])], @@ -125,32 +150,6 @@ else ssl_provider="GnuTLS" fi -# Cython Python Bindings -AC_ARG_WITH([cython], - [AS_HELP_STRING([--without-cython], - [build Python bindings using Cython (default is yes)])], - [build_cython=false], - [build_cython=true]) -if test "$build_cython" = "true"; then - AM_PATH_PYTHON(2.3) - AC_PROG_CYTHON(0.12.1) - CYTHON_PYTHON -else - CYTHON=false - -fi -if [test "x$CYTHON" != "xfalse"]; then - CYTHON_SUB=cython - CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist)/plist/cython - AC_SUBST([CYTHON_PLIST_INCLUDE_DIR]) - cython_python_bindings=yes -else - CYTHON_SUB= - cython_python_bindings=no -fi -AM_CONDITIONAL([HAVE_CYTHON],[test "x$CYTHON_SUB" = "xcython"]) -AC_SUBST([CYTHON_SUB]) - AC_ARG_ENABLE([dev-tools], [AS_HELP_STRING([--enable-dev-tools], [build development helper tools (default is no)])], -- cgit v1.1-32-gdbae