3 @@ -333,30 +333,46 @@ AS_IF([test "x$enable_android" = "xyes"], [
4 dnl optional parameter: Wifi-P2P support
5 dnl -----------------------------------------------
7 - PKG_CHECK_MODULES([WIFIP2P], wifip2p >= 0.1 , [
9 - AC_SUBST(WIFIP2P_CFLAGS)
10 - AC_SUBST(WIFIP2P_LIBS)
11 - AC_DEFINE(WITH_WIFIP2P, [1], ["wifi-p2p support enabled"])
14 - AC_MSG_WARN([wifi-p2p library not found. wifi-p2p support is disabled.])
16 + AC_ARG_WITH([wifip2p],
17 + AS_HELP_STRING([--without-wifip2p], [Build without wifip2p support]),
20 + AC_MSG_NOTICE([WIFIP2P support disabled])
22 + PKG_CHECK_MODULES([WIFIP2P], wifip2p >= 0.1 , [
24 + AC_SUBST(WIFIP2P_CFLAGS)
25 + AC_SUBST(WIFIP2P_LIBS)
26 + AC_DEFINE(WITH_WIFIP2P, [1], ["wifi-p2p support enabled"])
29 + AC_MSG_WARN([wifi-p2p library not found. wifi-p2p support is disabled.])
34 - dnl -----------------------------------------------
35 - dnl optional parameter: VMime support
36 - dnl -----------------------------------------------
38 - PKG_CHECK_MODULES([VMIME], vmime >= 0.9.1 , [
40 - AC_SUBST(VMIME_CFLAGS)
41 - AC_SUBST(VMIME_LIBS)
42 - AC_DEFINE(HAVE_VMIME, [1], ["Email Convergence Layer is available"])
43 - AC_CHECK_HEADERS([vmime/utility/smartPtrInt.hpp])
46 - AC_MSG_WARN([VMime library not found. Email Convergence Layer is disabled.])
48 + dnl -----------------------------------------------
49 + dnl optional parameter: VMime support
50 + dnl -----------------------------------------------
52 + AC_ARG_WITH([vmime],
53 + AS_HELP_STRING([--without-vmime], [Build without vmime support]),
56 + AC_MSG_NOTICE([VMIME support disabled])
58 + PKG_CHECK_MODULES([VMIME], vmime >= 0.9.1 , [
60 + AC_SUBST(VMIME_CFLAGS)
61 + AC_SUBST(VMIME_LIBS)
62 + AC_DEFINE(HAVE_VMIME, [1], ["Email Convergence Layer is available"])
63 + AC_CHECK_HEADERS([vmime/utility/smartPtrInt.hpp])
66 + AC_MSG_WARN([VMime library not found. Email Convergence Layer is disabled.])
71 dnl -----------------------------------------------
72 dnl check for regex capabilities