summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 66f6b4b..5a976c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,8 +84,24 @@ if test "x$ac_cv_have_endian_h" = "xno"; then
84 fi 84 fi
85fi 85fi
86 86
87CACHED_CFLAGS="$CFLAGS"
88CFLAGS+=" $libplist_CFLAGS -Werror"
89
87AC_CHECK_DECL([plist_from_json], [AC_DEFINE([HAVE_PLIST_JSON], [1], [Define if libplist has JSON support])], [], [[#include <plist/plist.h>]]) 90AC_CHECK_DECL([plist_from_json], [AC_DEFINE([HAVE_PLIST_JSON], [1], [Define if libplist has JSON support])], [], [[#include <plist/plist.h>]])
88 91
92# check if libplist has plist_new_unix_date()
93AC_CACHE_CHECK(for plist_new_unix_date, ac_cv_plist_unix_date,
94 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
95 #include <plist/plist.h>
96 ]], [[
97 return plist_new_unix_date(0) ? 0 : 1
98 ]])],[ac_cv_plist_unix_date=yes],[ac_cv_plist_unix_date=no]))
99if test "$ac_cv_plist_unix_date" = "yes"; then
100 AC_DEFINE(HAVE_PLIST_UNIX_DATE, 1, [Define if libplist has new unix date API (>= 2.7.0)])
101fi
102
103CFLAGS="$CACHED_CFLAGS"
104
89# Check for operating system 105# Check for operating system
90AC_MSG_CHECKING([for platform-specific build settings]) 106AC_MSG_CHECKING([for platform-specific build settings])
91case ${host_os} in 107case ${host_os} in