summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail/courier-imap/files/courier-imap-3.0.2-disable-fam.diff')
-rw-r--r--net-mail/courier-imap/files/courier-imap-3.0.2-disable-fam.diff57
1 files changed, 57 insertions, 0 deletions
diff --git a/net-mail/courier-imap/files/courier-imap-3.0.2-disable-fam.diff b/net-mail/courier-imap/files/courier-imap-3.0.2-disable-fam.diff
new file mode 100644
index 000000000000..2508d154b10d
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-3.0.2-disable-fam.diff
@@ -0,0 +1,57 @@
+diff -ur courier-imap-3.0.2.orig/maildir/configure.in courier-imap-3.0.2/maildir/configure.in
+--- courier-imap-3.0.2.orig/maildir/configure.in 2004-04-23 18:58:35.000000000 -0700
++++ courier-imap-3.0.2/maildir/configure.in 2004-04-23 18:58:40.000000000 -0700
+@@ -58,26 +58,33 @@
+ AC_STRUCT_TM
+
+ dnl Checks for library functions.
+-AC_CHECK_HEADER(fam.h, :, :)
+-AC_CHECK_FUNCS(symlink readlink strcasecmp utime utimes)
+-AC_CHECK_LIB(fam, FAMOpen, [
+- LIBFAM=-lfam
+- AC_DEFINE_UNQUOTED(HAVE_FAM,1,
+- [ Whether libfam.a is available ])
+-
+- AC_CHECK_HEADER(fam.h, : , [
+-AC_MSG_WARN([[The development header files and libraries for fam,]])
+-AC_MSG_WARN([[the File Alteration Monitor, are not installed.]])
+-AC_MSG_WARN([[You appear to have the FAM runtime libraries installed,]])
+-AC_MSG_WARN([[so you need to simply install the additional development]])
+-AC_MSG_WARN([[package for your operating system.]])
+-AC_MSG_ERROR([[FAM development libraries not found.]]) ]
+- )
+- ])
+-
+-AC_SUBST(LIBFAM)
+-
+-echo "$LIBFAM" >maildir.libdeps
++AC_ARG_WITH(fam, [ --with-fam Compile with FAM support],
++ fam="$withval",
++ fam="no")
++
++if test "$fam" != "no"
++then
++ AC_CHECK_HEADER(fam.h, :, :)
++ AC_CHECK_FUNCS(symlink readlink strcasecmp utime utimes)
++ AC_CHECK_LIB(fam, FAMOpen, [
++ LIBFAM=-lfam
++ AC_DEFINE_UNQUOTED(HAVE_FAM,1,
++ [ Whether libfam.a is available ])
++
++ AC_CHECK_HEADER(fam.h, : , [
++ AC_MSG_WARN([[The development header files and libraries for fam,]])
++ AC_MSG_WARN([[the File Alteration Monitor, are not installed.]])
++ AC_MSG_WARN([[You appear to have the FAM runtime libraries installed,]])
++ AC_MSG_WARN([[so you need to simply install the additional development]])
++ AC_MSG_WARN([[package for your operating system.]])
++ AC_MSG_ERROR([[FAM development libraries not found.]]) ]
++ )
++ ])
++
++ AC_SUBST(LIBFAM)
++
++ echo "$LIBFAM" >maildir.libdeps
++fi
+
+ AC_CACHE_CHECK([for missing gethostname prototype],maildir_cv_SYS_GETHOSTNAME,
+