diff options
| author | 2010-03-16 03:40:55 -0500 | |
|---|---|---|
| committer | 2012-03-20 23:25:54 +0100 | |
| commit | fd3f9219f4e7178435f312300f933abe25608cf3 (patch) | |
| tree | d41f4e184fca3da70a4bb44a0eee39dab32b5350 /configure.ac | |
| parent | 69f518d3a4b249daab850b08a376adbbf6636a8e (diff) | |
| download | libimobiledevice-fd3f9219f4e7178435f312300f933abe25608cf3.tar.gz libimobiledevice-fd3f9219f4e7178435f312300f933abe25608cf3.tar.bz2 | |
Added cython bindings.
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 43 |
1 files changed, 34 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 7dcf87b..b12ee61 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -69,12 +69,12 @@ if test "x$ac_cv_have_endian" = "xno"; then | |||
| 69 | fi | 69 | fi |
| 70 | fi | 70 | fi |
| 71 | 71 | ||
| 72 | 72 | # SWIG Python Bindings | |
| 73 | AC_ARG_WITH([swig], | 73 | AC_ARG_WITH([swig], |
| 74 | [AS_HELP_STRING([--without-swig], | 74 | [AS_HELP_STRING([--without-swig], |
| 75 | [build Python bindings using swig (default is yes)])], | 75 | [build Python bindings using SWIG (default is yes)])], |
| 76 | [build_swig=false], | 76 | [build_swig=false], |
| 77 | [build_swig=true]) | 77 | [build_swig=true]) |
| 78 | if test "$build_swig" = "true"; then | 78 | if test "$build_swig" = "true"; then |
| 79 | AM_PATH_PYTHON(2.3) | 79 | AM_PATH_PYTHON(2.3) |
| 80 | AC_PROG_SWIG(1.3.21) | 80 | AC_PROG_SWIG(1.3.21) |
| @@ -83,13 +83,13 @@ if test "$build_swig" = "true"; then | |||
| 83 | else | 83 | else |
| 84 | SWIG=false | 84 | SWIG=false |
| 85 | fi | 85 | fi |
| 86 | |||
| 87 | if [test "x$SWIG" != "xfalse"]; then | 86 | if [test "x$SWIG" != "xfalse"]; then |
| 88 | python_bindings=yes | 87 | SWIG_SUB=swig |
| 88 | swig_python_bindings=yes | ||
| 89 | else | 89 | else |
| 90 | python_bindings=no | 90 | SWIG_SUB= |
| 91 | swig_python_bindings=no | ||
| 91 | fi | 92 | fi |
| 92 | |||
| 93 | AM_CONDITIONAL([HAVE_SWIG],[test "x$SWIG" != "xfalse"]) | 93 | AM_CONDITIONAL([HAVE_SWIG],[test "x$SWIG" != "xfalse"]) |
| 94 | 94 | ||
| 95 | AC_ARG_ENABLE([openssl], | 95 | AC_ARG_ENABLE([openssl], |
| @@ -124,9 +124,32 @@ else | |||
| 124 | ssl_provider="GnuTLS" | 124 | ssl_provider="GnuTLS" |
| 125 | fi | 125 | fi |
| 126 | 126 | ||
| 127 | # Cython Python Bindings | ||
| 128 | AC_SUBST([CYTHON_PLIST_INCLUDE_DIR]) | ||
| 127 | 129 | ||
| 128 | AC_SUBST([DEV_SUB]) | 130 | AC_ARG_WITH([cython], |
| 131 | [AS_HELP_STRING([--without-cython], | ||
| 132 | [build Python bindings using Cython (default is yes)])], | ||
| 133 | [build_cython=false], | ||
| 134 | [build_cython=true]) | ||
| 135 | if test "$build_cython" = "true"; then | ||
| 136 | AM_PATH_PYTHON(2.3) | ||
| 137 | AC_PROG_CYTHON(0.12.1) | ||
| 138 | CYTHON_PYTHON | ||
| 139 | else | ||
| 140 | CYTHON=false | ||
| 129 | 141 | ||
| 142 | fi | ||
| 143 | if [test "x$CYTHON" != "xfalse"]; then | ||
| 144 | CYTHON_SUB=cython | ||
| 145 | CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist)/plist/cython | ||
| 146 | else | ||
| 147 | CYTHON_SUB= | ||
| 148 | cython_python_bindings=no | ||
| 149 | fi | ||
| 150 | AM_CONDITIONAL([HAVE_CYTHON],[test "x$CYTHON" = "xcython"]) | ||
| 151 | |||
| 152 | AC_SUBST([DEV_SUB]) | ||
| 130 | 153 | ||
| 131 | AC_ARG_ENABLE([dev-tools], | 154 | AC_ARG_ENABLE([dev-tools], |
| 132 | [AS_HELP_STRING([--enable-dev-tools], | 155 | [AS_HELP_STRING([--enable-dev-tools], |
| @@ -200,6 +223,7 @@ include/Makefile | |||
| 200 | dev/Makefile | 223 | dev/Makefile |
| 201 | tools/Makefile | 224 | tools/Makefile |
| 202 | swig/Makefile | 225 | swig/Makefile |
| 226 | cython/Makefile | ||
| 203 | docs/Makefile | 227 | docs/Makefile |
| 204 | libimobiledevice-1.0.pc | 228 | libimobiledevice-1.0.pc |
| 205 | doxygen.cfg | 229 | doxygen.cfg |
| @@ -212,7 +236,8 @@ Configuration for $PACKAGE $VERSION: | |||
| 212 | Install prefix: .........: $prefix | 236 | Install prefix: .........: $prefix |
| 213 | Debug code ..............: $building_debug_code | 237 | Debug code ..............: $building_debug_code |
| 214 | Dev tools ...............: $building_dev_tools | 238 | Dev tools ...............: $building_dev_tools |
| 215 | Python bindings .........: $python_bindings | 239 | SWIG Python bindings ....: $swig_python_bindings |
| 240 | Cython Python bindgins ..: $cython_python_bindings | ||
| 216 | SSL support .............: $ssl_provider | 241 | SSL support .............: $ssl_provider |
| 217 | 242 | ||
| 218 | Now type 'make' to build $PACKAGE $VERSION, | 243 | Now type 'make' to build $PACKAGE $VERSION, |
