summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2015-01-29 21:40:35 +0100
committerGravatar Martin Szulecki2015-01-29 21:40:35 +0100
commite4349e5b41e06f710106141e7853c3f7e3899d62 (patch)
treea9137259fd5ca7ea8a286dd86dbe51e8f38a9e02 /configure.ac
parent8f8219bec024d471bfc7574433e3b69019b3988e (diff)
downloadlibirecovery-e4349e5b41e06f710106141e7853c3f7e3899d62.tar.gz
libirecovery-e4349e5b41e06f710106141e7853c3f7e3899d62.tar.bz2
Improve maintainability and requires of pkg-config file
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 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