diff options
| author | 2012-05-17 16:57:17 +0200 | |
|---|---|---|
| committer | 2012-05-17 16:57:17 +0200 | |
| commit | 849ea066426b8f5f6e6d1aea9804e095edca3b49 (patch) | |
| tree | 59ebf5a468d0d961666f7450ae05583232d31cd9 | |
| parent | 84235e0834e57551028329723f4510e1dbe7bc11 (diff) | |
| download | libimobiledevice-849ea066426b8f5f6e6d1aea9804e095edca3b49.tar.gz libimobiledevice-849ea066426b8f5f6e6d1aea9804e095edca3b49.tar.bz2 | |
configure: Check if libplist Cython bindings are installed at configure time
| -rw-r--r-- | configure.ac | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 140c9bd..bab4512 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -83,10 +83,20 @@ else | |||
| 83 | CYTHON=false | 83 | CYTHON=false |
| 84 | fi | 84 | fi |
| 85 | if [test "x$CYTHON" != "xfalse"]; then | 85 | if [test "x$CYTHON" != "xfalse"]; then |
| 86 | CYTHON_SUB=cython | 86 | AC_MSG_CHECKING([for libplist Cython bindings]) |
| 87 | CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist)/plist/cython | 87 | CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist)/plist/cython |
| 88 | AC_SUBST([CYTHON_PLIST_INCLUDE_DIR]) | 88 | if [test ! -d "$CYTHON_PLIST_INCLUDE_DIR"]; then |
| 89 | cython_python_bindings=yes | 89 | CYTHON=false |
| 90 | CYTHON_SUB= | ||
| 91 | cython_python_bindings=no | ||
| 92 | AC_MSG_RESULT([no]) | ||
| 93 | AC_MSG_WARN([cannot find libplist Cython bindings. You should install your distribution specific libplist Cython bindings package.]) | ||
| 94 | else | ||
| 95 | AC_SUBST([CYTHON_PLIST_INCLUDE_DIR]) | ||
| 96 | AC_MSG_RESULT([$CYTHON_PLIST_INCLUDE_DIR]) | ||
| 97 | CYTHON_SUB=cython | ||
| 98 | cython_python_bindings=yes | ||
| 99 | fi | ||
| 90 | else | 100 | else |
| 91 | CYTHON_SUB= | 101 | CYTHON_SUB= |
| 92 | cython_python_bindings=no | 102 | cython_python_bindings=no |
