summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2015-10-06 21:38:10 +0200
committerGravatar Martin Szulecki2015-10-06 21:38:10 +0200
commit950fbae391f34d6c31e087359515c755b49b7eff (patch)
tree3fabbb5ff6d5601bda77747bdcd7c3f64fe65188
parentd92855b7216554d21cc574861b3bba64c00fdb7b (diff)
downloadidevicerestore-950fbae391f34d6c31e087359515c755b49b7eff.tar.gz
idevicerestore-950fbae391f34d6c31e087359515c755b49b7eff.tar.bz2
configure.ac: Move dependency versions into variables for easier maintenance
-rw-r--r--configure.ac29
1 files changed, 23 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 8fa934b..d36cc67 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,16 +14,33 @@ AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
+# Minimum package versions
+LIBIRECOVERY_VERSION=0.2.0
+LIBIMOBILEDEVICE_VERSION=1.1.6
+LIBPLIST_VERSION=1.12
+LIBZIP_VERSION=0.8
+LIBCURL_VERSION=7.0
+OPENSSL_VERSION=0.9.8
+
+AC_SUBST(LIBIRECOVERY_VERSION)
+AC_SUBST(LIBIMOBILEDEVICE_VERSION)
+AC_SUBST(LIBPLIST_VERSION)
+AC_SUBST(LIBZIP_VERSION)
+AC_SUBST(LIBCURL_VERSION)
+AC_SUBST(OPENSSL_VERSION)
+
+# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
-PKG_CHECK_MODULES(libirecovery, libirecovery >= 0.2.0)
-PKG_CHECK_MODULES(libimobiledevice, libimobiledevice-1.0 >= 1.1.6)
-PKG_CHECK_MODULES(libplist, libplist >= 1.12)
-PKG_CHECK_MODULES(libzip, libzip >= 0.8)
-PKG_CHECK_MODULES(libcurl, libcurl >= 7.0)
-PKG_CHECK_MODULES(openssl, openssl >= 0.9.8)
+# Checks for libraries.
+PKG_CHECK_MODULES(libirecovery, libirecovery >= $LIBIRECOVERY_VERSION)
+PKG_CHECK_MODULES(libimobiledevice, libimobiledevice-1.0 >= $LIBIMOBILEDEVICE_VERSION)
+PKG_CHECK_MODULES(libplist, libplist >= $LIBPLIST_VERSION)
+PKG_CHECK_MODULES(libzip, libzip >= $LIBZIP_VERSION)
+PKG_CHECK_MODULES(libcurl, libcurl >= $LIBCURL_VERSION)
+PKG_CHECK_MODULES(openssl, openssl >= $OPENSSL_VERSION)
GLOBAL_CFLAGS=""
AC_LDADD=""