optional_imapx_provider.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. Upstream-Status: Inappropriate [disable feature]
  2. Index: git/camel/providers/Makefile.am
  3. ===================================================================
  4. --- git.orig/camel/providers/Makefile.am 2010-07-06 18:49:34.000000000 +0800
  5. +++ git/camel/providers/Makefile.am 2010-07-08 17:23:56.000000000 +0800
  6. @@ -6,6 +6,10 @@
  7. IMAP4_DIR=imap4
  8. endif
  9. +if ENABLE_IMAPX
  10. +IMAPX_DIR=imapx
  11. +endif
  12. +
  13. if ENABLE_HULA
  14. HULA_DIR=hula
  15. endif
  16. @@ -15,6 +19,6 @@
  17. SENDMAIL_DIR=sendmail
  18. endif
  19. -SUBDIRS = pop3 $(SENDMAIL_DIR) smtp imap imapx $(IMAP4_DIR) $(NNTP_DIR) local groupwise $(HULA_DIR)
  20. +SUBDIRS = pop3 $(SENDMAIL_DIR) smtp imap $(IMAPX_DIR) $(IMAP4_DIR) $(NNTP_DIR) local groupwise $(HULA_DIR)
  21. -include $(top_srcdir)/git.mk
  22. Index: git/configure.ac
  23. ===================================================================
  24. --- git.orig/configure.ac 2010-07-08 17:24:36.000000000 +0800
  25. +++ git/configure.ac 2010-07-08 17:32:06.000000000 +0800
  26. @@ -1002,6 +1002,26 @@
  27. AM_CONDITIONAL(ENABLE_IMAP4, [test x$enable_imap4 = xyes])
  28. dnl ******************************
  29. +dnl IMAPX code support.
  30. +dnl ******************************
  31. +AC_ARG_ENABLE(imapx,
  32. + AS_HELP_STRING([--enable-imapx=no/yes],
  33. + [Attempt to compile yet another, incomplete, very unsupported IMAPv4r1 implementation]),
  34. + [],[enable_imapx=no])
  35. +
  36. +if test "x$enable_imapx" = "xyes"; then
  37. + AC_DEFINE(ENABLE_IMAPX,1,[Really don't try this at home])
  38. + AC_PATH_PROG(GPERF, gperf)
  39. + if test -z "$GPERF" ; then
  40. + AC_MSG_ERROR([You need gperf to compile imapx provider])
  41. + fi
  42. + msg_imapx=yes
  43. +else
  44. + msg_imapx=no
  45. +fi
  46. +AM_CONDITIONAL(ENABLE_IMAPX, [test x$enable_imapx = xyes])
  47. +
  48. +dnl ******************************
  49. dnl Hula support
  50. dnl ******************************
  51. AC_ARG_ENABLE([hula],
  52. @@ -1541,3 +1561,7 @@
  53. if test "x$msg_hula" = "xyes"; then
  54. echo "Hula support: $msg_hula"
  55. fi
  56. +
  57. +if test "x$msg_imapx" = "xyes"; then
  58. + echo "IMAPX support: $msg_imapx"
  59. +fi