diff options
author | 2025-05-17 22:08:07 +0200 | |
---|---|---|
committer | 2025-05-17 22:08:07 +0200 | |
commit | 9409c9a09e3224eb64ff22c5e59a2c73a4d05dee (patch) | |
tree | be58e35a20b59b34047524350c470fcc6a42c0fd | |
parent | db53b67ab75c93a6756c87b30f4506de39e1c964 (diff) | |
download | libimobiledevice-glue-9409c9a09e3224eb64ff22c5e59a2c73a4d05dee.tar.gz libimobiledevice-glue-9409c9a09e3224eb64ff22c5e59a2c73a4d05dee.tar.bz2 |
configure: Make sure the check for newer libplist works as expected
-rw-r--r-- | configure.ac | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 013b093..0f0a755 100644 --- a/configure.ac +++ b/configure.ac @@ -94,15 +94,14 @@ AM_CONDITIONAL(WIN32, test x$win32 = xtrue) AC_CHECK_MEMBER(struct dirent.d_type, AC_DEFINE(HAVE_DIRENT_D_TYPE, 1, [define if struct dirent has member d_type]),, [#include <dirent.h>]) CACHED_CFLAGS="$CFLAGS" -CFLAGS+=" $libplist_CFLAGS" +CFLAGS+=" $libplist_CFLAGS -Werror" # check if libplist has plist_new_unix_date() AC_CACHE_CHECK(for plist_new_unix_date, ac_cv_plist_unix_date, AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <plist/plist.h> ]], [[ - plist_new_unix_date(0); - return 0; + return plist_new_unix_date(0) ? 0 : 1 ]])],[ac_cv_plist_unix_date=yes],[ac_cv_plist_unix_date=no])) if test "$ac_cv_plist_unix_date" = "yes"; then AC_DEFINE(HAVE_PLIST_UNIX_DATE, 1, [Define if libplist has new unix date API (>= 2.7.0)]) |