summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac6
-rw-r--r--libirecovery.pc.in6
2 files changed, 8 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 7a28800..f3f9bde 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,11 @@ dnl libtool versioning
# CURRENT : REVISION : AGE
LIBIRECOVERY_SO_VERSION=2:1:0
+dnl Minimum package versions
+LIBUSB_VERSION=1.0.3
+
AC_SUBST(LIBIRECOVERY_SO_VERSION)
+AC_SUBST(LIBUSB_VERSION)
# Checks for programs.
AC_PROG_CC
@@ -26,7 +30,7 @@ AM_PROG_CC_C_O
AC_PROG_LIBTOOL
# Checks for libraries.
-PKG_CHECK_MODULES(libusb, libusb-1.0 >= 1.0.3)
+PKG_CHECK_MODULES(libusb, libusb-1.0 >= $LIBUSB_VERSION)
# Check additional platform flags
case "$host_os" in
diff --git a/libirecovery.pc.in b/libirecovery.pc.in
index 752af9d..39cc29b 100644
--- a/libirecovery.pc.in
+++ b/libirecovery.pc.in
@@ -3,9 +3,9 @@ exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
-Name: libirecovery
+Name: @PACKAGE_NAME@
Description: A library to communicate with iBoot/iBSS on iOS devices via USB
-Version: @VERSION@
+Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lirecovery
Cflags: -I${includedir}
-
+Requires.private: libusb-1.0 >= @LIBUSB_VERSION@ \ No newline at end of file