diff options
author | Elan Ruusamäe | 2013-09-07 19:27:17 +0300 |
---|---|---|
committer | Elan Ruusamäe | 2013-09-07 19:36:11 +0300 |
commit | 05418483bbb63e014bda3dbb768e604ce810870f (patch) | |
tree | d6eda0db10a2f3eed73cb0f961af7abda94ceebe | |
parent | 83c931bd0486265dda735e61fb62aac521a444d4 (diff) | |
download | libimobiledevice-05418483bbb63e014bda3dbb768e604ce810870f.tar.gz libimobiledevice-05418483bbb63e014bda3dbb768e604ce810870f.tar.bz2 |
make variables for package dependencies, synchronize these with .pc file
-rw-r--r-- | configure.ac | 14 | ||||
-rw-r--r-- | libimobiledevice-1.0.pc.in | 2 |
2 files changed, 12 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index a0b038e..77ac1c2 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,15 @@ dnl libtool versioning # CURRENT : REVISION : AGE LIBIMOBILEDEVICE_SO_VERSION=4:1:0 +dnl Minimum package versions +LIBPLIST_VERSION=1.8 +LIBUSBMUXD_VERSION=1.0.8 +LIBPLISTMM_VERSION=1.8 + AC_SUBST(LIBIMOBILEDEVICE_SO_VERSION) +AC_SUBST(LIBPLIST_VERSION) +AC_SUBST(LIBUSBMUXD_VERSION) +AC_SUBST(LIBPLISTMM_VERSION) # Checks for programs. AC_PROG_CC @@ -26,9 +34,9 @@ AM_PROG_CC_C_O AC_PROG_LIBTOOL # Checks for libraries. -PKG_CHECK_MODULES(libusbmuxd, libusbmuxd >= 1.0.8) -PKG_CHECK_MODULES(libplist, libplist >= 1.8) -PKG_CHECK_MODULES(libplistmm, libplist++ >= 1.8) +PKG_CHECK_MODULES(libusbmuxd, libusbmuxd >= $LIBUSBMUXD_VERSION) +PKG_CHECK_MODULES(libplist, libplist >= $LIBPLIST_VERSION) +PKG_CHECK_MODULES(libplistmm, libplist++ >= $LIBPLISTMM_VERSION) AC_CHECK_LIB(pthread, [pthread_create, pthread_mutex_lock], [AC_SUBST(libpthread_LIBS,[-lpthread])], [AC_MSG_ERROR([libpthread is required to build libimobiledevice])]) # Checks for header files. diff --git a/libimobiledevice-1.0.pc.in b/libimobiledevice-1.0.pc.in index c21cc1d..e366c5e 100644 --- a/libimobiledevice-1.0.pc.in +++ b/libimobiledevice-1.0.pc.in @@ -6,7 +6,7 @@ includedir=@includedir@ Name: libimobiledevice Description: A library to communicate with services running on Apple iPhone/iPod Touch devices. Version: @VERSION@ -Requires: libplist >= 0.12 libusbmuxd >= 0.1.0 @ssl_requires@ +Requires: libplist >= @LIBPLIST_VERSION@ libusbmuxd >= @LIBUSBMUXD_VERSION@ @ssl_requires@ Libs: -L${libdir} -limobiledevice Cflags: -I${includedir} |