diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-12 20:36:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-12 20:36:07 +0000 |
commit | 3fcac17ef64103be02431a689a0538e997296a92 (patch) | |
tree | 7399a0159c5bbf75580db553e8402e568d8ac257 /kresources/configure.in.in | |
parent | 51e4d32c42dd2b953d155c68f497af252f8c48b0 (diff) | |
download | tdepim-3fcac17ef64103be02431a689a0538e997296a92.tar.gz tdepim-3fcac17ef64103be02431a689a0538e997296a92.zip |
Part 2 of prior commit
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1174561 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/configure.in.in')
-rw-r--r-- | kresources/configure.in.in | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/kresources/configure.in.in b/kresources/configure.in.in new file mode 100644 index 000000000..fe766e834 --- /dev/null +++ b/kresources/configure.in.in @@ -0,0 +1,63 @@ +#MIN_CONFIG + +dnl Say what we're doing +AC_MSG_CHECKING(if caldav resource is allowed) +AC_ARG_ENABLE(caldav, [ --disable-caldav disable caldav support (caldav resources such as Google Calendar and Zimbra will not function) ], with_caldav=$enableval, with_caldav=yes) +if test "$with_caldav" = "yes"; then + AC_MSG_RESULT([yes]) + + dnl Check caldav API version + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + cxx_flags_safe="$CXXFLAGS" + cflags_safe="$CFLAGS" + CXXFLAGS="$CXXFLAGS" + CFLAGS="$CFLAGS" + AC_MSG_CHECKING([for libcaldav]) + AC_TRY_COMPILE([extern "C" { + #include <libcaldav/caldav.h> + } + ],[return 0;], + [AC_MSG_RESULT(found) + AM_CONDITIONAL(include_caldav_SUBDIR, test true = true)], + [AC_MSG_RESULT(not found) + AM_CONDITIONAL(include_caldav_SUBDIR, test true = false)]) + CXXFLAGS="$cxx_flags_safe" + CFLAGS="$cflags_safe" + AC_LANG_RESTORE + +else + AC_MSG_RESULT([no]) + AM_CONDITIONAL(include_caldav_SUBDIR, test true = false) +fi + +dnl Say what we're doing +AC_MSG_CHECKING(if carddav resource is allowed) +AC_ARG_ENABLE(carddav, [ --disable-carddav disable carddav support (carddav resources such as Google Contacts and Zimbra will not function) ], with_carddav=$enableval, with_carddav=yes) +if test "$with_carddav" = "yes"; then + AC_MSG_RESULT([yes]) + + dnl Check carddav API version + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + cxx_flags_safe="$CXXFLAGS" + cflags_safe="$CFLAGS" + CXXFLAGS="$CXXFLAGS" + CFLAGS="$CFLAGS" + AC_MSG_CHECKING([for libcarddav]) + AC_TRY_COMPILE([extern "C" { + #include <libcarddav/carddav.h> + } + ],[return 0;], + [AC_MSG_RESULT(found) + AM_CONDITIONAL(include_carddav_SUBDIR, test true = true)], + [AC_MSG_RESULT(not found) + AM_CONDITIONAL(include_carddav_SUBDIR, test true = false)]) + CXXFLAGS="$cxx_flags_safe" + CFLAGS="$cflags_safe" + AC_LANG_RESTORE + +else + AC_MSG_RESULT([no]) + AM_CONDITIONAL(include_carddav_SUBDIR, test true = false) +fi |