diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch) | |
tree | 67208f7c145782a7e90b123b982ca78d88cc2c87 /libkpimexchange/configure.in.in | |
download | tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkpimexchange/configure.in.in')
-rw-r--r-- | libkpimexchange/configure.in.in | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/libkpimexchange/configure.in.in b/libkpimexchange/configure.in.in new file mode 100644 index 000000000..4c6a71603 --- /dev/null +++ b/libkpimexchange/configure.in.in @@ -0,0 +1,35 @@ +dnl build with exchange support + +AC_MSG_CHECKING([if kdelibs has recent webdav]) +AC_LANG_SAVE +kde_safe_cppflags=$CPPFLAGS +CPPFLAGS="$CPPFLAGS $all_includes" +AC_LANG_CPLUSPLUS +AC_TRY_COMPILE( +[#include <kio/http.h>], +[ + int method = (int) KIO::DAV_SUBSCRIBE; +], +[ + ac_has_recent_webdav="yes" + AC_MSG_RESULT([yes]) +], +[ + ac_has_recent_webdav="no" + AC_MSG_RESULT([no]) +]) +CPPFLAGS=$kde_safe_cppflags +AC_LANG_RESTORE + +ac_use_exchange="no" +AC_ARG_ENABLE(exchange, + [ --disable-exchange disable Microsoft Exchange 2000 support for korganizer [default=enable]], ac_use_exchange=$enableval, ac_use_exchange=yes) +AM_CONDITIONAL(include_exchange_SUBDIR, test "x$ac_use_exchange" = "xyes" && test "x$ac_has_recent_webdav" = "xyes") + +if test "x$ac_use_exchange" != "xyes" || test "x$ac_has_recent_webdav" != "xyes"; then + DO_NOT_COMPILE="$DO_NOT_COMPILE libkpimexchange" + AC_MSG_WARN([Exchange 2000 support disabled]) +else + AC_DEFINE(KDEPIM_ENABLE_EXCHANGE, 1, [Define if you want Microsoft Exchange 2000 support]) +fi + |