diff options
author | Bastien Nocera <hadess@hadess.net> | 2020-06-16 14:04:25 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2020-06-17 12:10:23 +0200 |
commit | 694207d3f08bdd2095f01eee09eb523363800825 (patch) | |
tree | d18bdf7697f344546ab62339cacaac5698cbd16d | |
parent | 97185bae75b16bea48d532aa5511417e485b1c06 (diff) | |
download | upower-694207d3f08bdd2095f01eee09eb523363800825.tar.gz |
build: Use a newer libplist if available
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index a96b794..5f08d91 100644 --- a/configure.ac +++ b/configure.ac @@ -202,8 +202,10 @@ if test x$with_backend = xlinux; then PKG_CHECK_MODULES(USB, [libusb-1.0 >= 1.0.0]) AC_ARG_WITH(idevice, AS_HELP_STRING([--without-idevice],[Build without libimobiledevice]), with_idevice=$withval,with_idevice=yes) + LIBPLIST_DEP=libplist + PKG_CHECK_EXISTS(libplist-2.0, LIBPLIST_DEP=libplist-2.0) AS_IF([test "x$with_idevice" != "xno"], - [PKG_CHECK_MODULES(IDEVICE, libimobiledevice-1.0 >= 0.9.7 libplist >= 0.12, have_idevice=yes, have_idevice=no)], + [PKG_CHECK_MODULES(IDEVICE, libimobiledevice-1.0 >= 0.9.7 $LIBPLIST_DEP, have_idevice=yes, have_idevice=no)], [have_idevice=no]) AS_IF([test "x$have_idevice" = "xyes"], [AC_DEFINE(HAVE_IDEVICE, 1, [Define to 1 if iDevice is going to be built])]) |