Skip to content

Commit 9409c9a

Browse files
committed
configure: Make sure the check for newer libplist works as expected
1 parent db53b67 commit 9409c9a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

configure.ac

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,14 @@ AM_CONDITIONAL(WIN32, test x$win32 = xtrue)
9494
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>])
9595

9696
CACHED_CFLAGS="$CFLAGS"
97-
CFLAGS+=" $libplist_CFLAGS"
97+
CFLAGS+=" $libplist_CFLAGS -Werror"
9898

9999
# check if libplist has plist_new_unix_date()
100100
AC_CACHE_CHECK(for plist_new_unix_date, ac_cv_plist_unix_date,
101101
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
102102
#include <plist/plist.h>
103103
]], [[
104-
plist_new_unix_date(0);
105-
return 0;
104+
return plist_new_unix_date(0) ? 0 : 1
106105
]])],[ac_cv_plist_unix_date=yes],[ac_cv_plist_unix_date=no]))
107106
if test "$ac_cv_plist_unix_date" = "yes"; then
108107
AC_DEFINE(HAVE_PLIST_UNIX_DATE, 1, [Define if libplist has new unix date API (>= 2.7.0)])

0 commit comments

Comments
 (0)