diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-13 01:14:12 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-13 01:14:12 +0000 |
commit | 8957708ccee6892f70933d5da089e57ff77a0005 (patch) | |
tree | 8eb5fd5fbc83e3c202663d496b119f587fe520ae /kresources | |
parent | 3fcac17ef64103be02431a689a0538e997296a92 (diff) | |
download | tdepim-8957708ccee6892f70933d5da089e57ff77a0005.tar.gz tdepim-8957708ccee6892f70933d5da089e57ff77a0005.zip |
Added the ability to disable resources at compile time
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1174624 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources')
-rw-r--r-- | kresources/Makefile.am | 40 | ||||
-rw-r--r-- | kresources/configure.in.in | 99 |
2 files changed, 137 insertions, 2 deletions
diff --git a/kresources/Makefile.am b/kresources/Makefile.am index b5471d901..c0ca6cd2a 100644 --- a/kresources/Makefile.am +++ b/kresources/Makefile.am @@ -1,5 +1,41 @@ if include_exchange_SUBDIR -EXCHANGE_SUBDIR=exchange +EXCHANGE_SUBDIR=exchange +endif + +if include_egroupware_SUBDIR +EGROUPWARE_SUBDIR=egroupware +endif + +if include_kolab_SUBDIR +KOLAB_SUBDIR=kolab +endif + +if include_slox_SUBDIR +SLOX_SUBDIR=slox +endif + +if include_groupwise_SUBDIR +GROUPWISE_SUBDIR=groupwise +endif + +if include_featureplan_SUBDIR +FEATUREPLAN_SUBDIR=featureplan +endif + +if include_groupdav_SUBDIR +GROUPDAV_SUBDIR=groupdav +endif + +if include_birthdays_SUBDIR +BIRTHDAYS_SUBDIR=birthdays +endif + +if include_newexchange_SUBDIR +NEWEXCHANGE_SUBDIR=newexchange +endif + +if include_scalix_SUBDIR +SCALIX_SUBDIR=scalix endif if include_caldav_SUBDIR @@ -10,5 +46,5 @@ if include_carddav_SUBDIR CARDDAV_SUBDIR=carddav endif -SUBDIRS = lib remote egroupware $(EXCHANGE_SUBDIR) kolab slox groupwise featureplan groupdav birthdays newexchange scalix $(CALDAV_SUBDIR) $(CARDDAV_SUBDIR) +SUBDIRS = lib remote $(EGROUPWARE_SUBDIR) $(EXCHANGE_SUBDIR) $(KOLAB_SUBDIR) $(SLOX_SUBDIR) $(GROUPWISE_SUBDIR) $(FEATUREPLAN_SUBDIR) $(GROUPDAV_SUBDIR) $(BIRTHDAYS_SUBDIR) $(NEWEXCHANGE_SUBDIR) $(SCALIX_SUBDIR) $(CALDAV_SUBDIR) $(CARDDAV_SUBDIR) # SUBDIRS = remote egroupware $(EXCHANGE_SUBDIR) kolab slox groupwise featureplan diff --git a/kresources/configure.in.in b/kresources/configure.in.in index fe766e834..3a3009d66 100644 --- a/kresources/configure.in.in +++ b/kresources/configure.in.in @@ -1,6 +1,105 @@ #MIN_CONFIG dnl Say what we're doing +AC_MSG_CHECKING(if egroupware resource is allowed) +AC_ARG_ENABLE(caldav, [ --disable-egroupware disable egroupware support ], with_egroupware=$enableval, with_egroupware=yes) +if test "$with_egroupware" = "yes"; then + AC_MSG_RESULT([yes]) + AM_CONDITIONAL(include_egroupware_SUBDIR, test true = true) +else + AC_MSG_RESULT([no]) + AM_CONDITIONAL(include_egroupware_SUBDIR, test true = false) +fi + +dnl Say what we're doing +AC_MSG_CHECKING(if kolab resource is allowed) +AC_ARG_ENABLE(caldav, [ --disable-kolab disable kolab support ], with_kolab=$enableval, with_kolab=yes) +if test "$with_kolab" = "yes"; then + AC_MSG_RESULT([yes]) + AM_CONDITIONAL(include_kolab_SUBDIR, test true = true) +else + AC_MSG_RESULT([no]) + AM_CONDITIONAL(include_kolab_SUBDIR, test true = false) +fi + +dnl Say what we're doing +AC_MSG_CHECKING(if slox resource is allowed) +AC_ARG_ENABLE(caldav, [ --disable-slox disable slox support ], with_slox=$enableval, with_slox=yes) +if test "$with_slox" = "yes"; then + AC_MSG_RESULT([yes]) + AM_CONDITIONAL(include_slox_SUBDIR, test true = true) +else + AC_MSG_RESULT([no]) + AM_CONDITIONAL(include_slox_SUBDIR, test true = false) +fi + +dnl Say what we're doing +AC_MSG_CHECKING(if groupwise resource is allowed) +AC_ARG_ENABLE(caldav, [ --disable-groupwise disable groupwise support ], with_groupwise=$enableval, with_groupwise=yes) +if test "$with_groupwise" = "yes"; then + AC_MSG_RESULT([yes]) + AM_CONDITIONAL(include_groupwise_SUBDIR, test true = true) +else + AC_MSG_RESULT([no]) + AM_CONDITIONAL(include_groupwise_SUBDIR, test true = false) +fi + +dnl Say what we're doing +AC_MSG_CHECKING(if featureplan resource is allowed) +AC_ARG_ENABLE(featureplan, [ --disable-featureplan disable featureplan support ], with_featureplan=$enableval, with_featureplan=yes) +if test "$with_featureplan" = "yes"; then + AC_MSG_RESULT([yes]) + AM_CONDITIONAL(include_featureplan_SUBDIR, test true = true) +else + AC_MSG_RESULT([no]) + AM_CONDITIONAL(include_featureplan_SUBDIR, test true = false) +fi + +dnl Say what we're doing +AC_MSG_CHECKING(if groupdav resource is allowed) +AC_ARG_ENABLE(groupdav, [ --disable-groupdav disable groupdav support ], with_groupdav=$enableval, with_groupdav=yes) +if test "$with_groupdav" = "yes"; then + AC_MSG_RESULT([yes]) + AM_CONDITIONAL(include_groupdav_SUBDIR, test true = true) +else + AC_MSG_RESULT([no]) + AM_CONDITIONAL(include_groupdav_SUBDIR, test true = false) +fi + +dnl Say what we're doing +AC_MSG_CHECKING(if birthdays resource is allowed) +AC_ARG_ENABLE(birthdays, [ --disable-birthdays disable birthdays support ], with_birthdays=$enableval, with_birthdays=yes) +if test "$with_birthdays" = "yes"; then + AC_MSG_RESULT([yes]) + AM_CONDITIONAL(include_birthdays_SUBDIR, test true = true) +else + AC_MSG_RESULT([no]) + AM_CONDITIONAL(include_birthdays_SUBDIR, test true = false) +fi + +dnl Say what we're doing +AC_MSG_CHECKING(if newexchange resource is allowed) +AC_ARG_ENABLE(newexchange, [ --disable-newexchange disable newexchange support ], with_newexchange=$enableval, with_newexchange=yes) +if test "$with_newexchange" = "yes"; then + AC_MSG_RESULT([yes]) + AM_CONDITIONAL(include_newexchange_SUBDIR, test true = true) +else + AC_MSG_RESULT([no]) + AM_CONDITIONAL(include_newexchange_SUBDIR, test true = false) +fi + +dnl Say what we're doing +AC_MSG_CHECKING(if scalix resource is allowed) +AC_ARG_ENABLE(scalix, [ --disable-scalix disable scalix support ], with_scalix=$enableval, with_scalix=yes) +if test "$with_scalix" = "yes"; then + AC_MSG_RESULT([yes]) + AM_CONDITIONAL(include_scalix_SUBDIR, test true = true) +else + AC_MSG_RESULT([no]) + AM_CONDITIONAL(include_scalix_SUBDIR, test true = false) +fi + +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 |