summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2015-12-31 19:54:36 +0100
committerGravatar Nikias Bassen2015-12-31 19:54:36 +0100
commit86d028aabc9fdb65b155590366b53c0038989a81 (patch)
tree686af2278cc3f7764a2c36eebabe6b7dbd998205
parent166af423e44039a6f17d46d171cd90fcbee393aa (diff)
downloadlibirecovery-86d028aabc9fdb65b155590366b53c0038989a81.tar.gz
libirecovery-86d028aabc9fdb65b155590366b53c0038989a81.tar.bz2
autofoo: Only set Requires.private for libusb if linking against libusb
-rw-r--r--configure.ac3
-rw-r--r--libirecovery.pc.in2
2 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index bc8ba3d..f767ed9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,7 +21,6 @@ dnl Minimum package versions
LIBUSB_VERSION=1.0.3
AC_SUBST(LIBIRECOVERY_SO_VERSION)
-AC_SUBST(LIBUSB_VERSION)
# Checks for programs.
AC_PROG_CC
@@ -75,6 +74,8 @@ AS_IF([test "x$with_iokit" = "xyes" && test "x$have_iokit" = "xyes"] , [
[
PKG_CHECK_MODULES(libusb, libusb-1.0 >= $LIBUSB_VERSION)
USB_BACKEND="libusb `$PKG_CONFIG --modversion libusb-1.0`"
+ LIBUSB_REQUIRED="libusb >= $LIBUSB_VERSION"
+ AC_SUBST(LIBUSB_REQUIRED)
]
)
diff --git a/libirecovery.pc.in b/libirecovery.pc.in
index 39cc29b..11ac86a 100644
--- a/libirecovery.pc.in
+++ b/libirecovery.pc.in
@@ -8,4 +8,4 @@ Description: A library to communicate with iBoot/iBSS on iOS devices via USB
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lirecovery
Cflags: -I${includedir}
-Requires.private: libusb-1.0 >= @LIBUSB_VERSION@ \ No newline at end of file
+Requires.private: @LIBUSB_REQUIRED@