summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac7
-rw-r--r--libusbmuxd.pc.in6
2 files changed, 9 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 24eceed..8ffb4cb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,12 @@ dnl libtool versioning
# CURRENT : REVISION : AGE
LIBUSBMUXD_SO_VERSION=4:0:0
+
+dnl Minimum package versions
+LIBPLIST_VERSION=1.11
+
AC_SUBST(LIBUSBMUXD_SO_VERSION)
+AC_SUBST(LIBPLIST_VERSION)
# Checks for programs.
AC_PROG_CC
@@ -26,7 +31,7 @@ AM_PROG_CC_C_O
AC_PROG_LIBTOOL
# Checks for libraries.
-PKG_CHECK_MODULES(libplist, libplist >= 1.11)
+PKG_CHECK_MODULES(libplist, libplist >= $LIBPLIST_VERSION)
AC_CHECK_HEADERS([sys/inotify.h], have_inotify=yes, have_inotify=no)
AC_ARG_WITH([inotify],
diff --git a/libusbmuxd.pc.in b/libusbmuxd.pc.in
index 551ad44..3385bc9 100644
--- a/libusbmuxd.pc.in
+++ b/libusbmuxd.pc.in
@@ -3,9 +3,9 @@ exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
-Name: libusbmuxd
+Name: @PACKAGE_NAME@
Description: A library to communicate with the usbmux daemon
-Version: @VERSION@
+Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lusbmuxd
Cflags: -I${includedir}
-
+Requires.private: libplist >= @LIBPLIST_VERSION@ \ No newline at end of file