From 7cb1bdf78ce8963da2923d6098645cb648e30259 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 24 Jun 2019 20:19:32 +0200 Subject: fdr: Handle new timeout error conditions (introduced in latest libimobiledevice) --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c9fcb91..e216535 100644 --- a/configure.ac +++ b/configure.ac @@ -73,6 +73,18 @@ if test x$ac_cv_func_strsep != xyes; then fi fi +# check if libimobiledevice has timeout errors +AC_CACHE_CHECK(for IDEVICE_E_TIMEOUT in enum idevice_error_t, ac_cv_idevice_error_has_timeout, + AC_TRY_COMPILE([ + #include + ], [ + return IDEVICE_E_TIMEOUT; + ], ac_cv_idevice_error_has_timeout=yes, ac_cv_idevice_error_has_timeout=no)) + +if test "$ac_cv_idevice_error_has_timeout" = "yes"; then + AC_DEFINE(HAVE_IDEVICE_E_TIMEOUT, 1, [Define if enum idevice_error_t defines IDEVICE_E_TIMEOUT]) +fi + AC_SUBST(GLOBAL_CFLAGS) AC_SUBST(AC_LDFLAGS) AC_SUBST(AC_LDADD) -- cgit v1.1-32-gdbae