EXTRA_ARGS=
PROFILE_ARGS=
-#to enable debugging: export DEB_BUILD_OPTIONS="debug profiling"
+#to enable debugging: export DEB_BUILD_OPTIONS="debug profiling threadoff"
ifneq (,$(findstring profiling,$(DEB_BUILD_OPTIONS)))
PROFILE_ARGS= --with-gprof
endif
CFLAGS += -O2
endif
+ifneq (,$(findstring threadoff,$(DEB_BUILD_OPTIONS)))
+ THREAD_ARGS=--without-threaded-client
+else
+ THREAD_ARGS=
+endif
+
configure: configure-stamp
configure-stamp:
dh_testdir
--with-ldap \
--with-libical \
--with-libsieve \
- --enable-debug $(EXTRA_ARGS) $(PROFILE_ARGS)
+ --enable-debug $(EXTRA_ARGS) $(PROFILE_ARGS) $(THREAD_ARGS)
touch configure-stamp