[syslog-ng] [PATCH] support for older PCRE

Matthew Hall mhall at mhcomputing.net
Fri Feb 4 01:05:28 CET 2011


Can we get this one added for older PCRE support?
Bazsi made the old version, I tested and I updated it to apply cleanly on 3.2 master.

Signed-off-by: Matthew Hall <mhall at mhcomputing.net>

---

diff --git a/configure.in b/configure.in
index 0c6cef2..f574f48 100644
--- a/configure.in
+++ b/configure.in
@@ -25,6 +25,8 @@ EVTLOG_MIN_VERSION="0.2"
 OPENSSL_MIN_VERSION="0.9.8"
 LIBDBI_MIN_VERSION="0.8.0"
 PCRE_MIN_VERSION="7.3"
+dnl mhall allow older pcre
+PCRE_MIN_VERSION="6.1"
 
 dnl ***************************************************************************
 dnl Initial setup
diff --git a/lib/logmatcher.c b/lib/logmatcher.c
index f0a822c..d003c58 100644
--- a/lib/logmatcher.c
+++ b/lib/logmatcher.c
@@ -520,8 +520,13 @@ log_matcher_pcre_re_compile(LogMatcher *s, const gchar *re)
  
   if (self->super.flags & LMF_ICASE)
     flags |= PCRE_CASELESS;
+
+/* mhall allow older pcre */  
+#ifdef PCRE_NEWLINE_ANYCRLF
   if (self->super.flags & LMF_NEWLINE)
     flags |= PCRE_NEWLINE_ANYCRLF;
+#endif
+
   if (self->super.flags & LMF_UTF8)
     {
        gint support;



More information about the syslog-ng mailing list