$NetBSD: patch-aa,v 1.5 2011/06/22 01:05:37 obache Exp $

--- configure.in.orig	2011-06-21 19:50:39.000000000 +0000
+++ configure.in
@@ -403,7 +403,7 @@ if test "$sievedir" != "no"; then
 
 	if test "$testpcre" != "no"; then
 	    AC_CHECK_HEADER(pcreposix.h)
-	    if test "$ac_cv_header_pcreposix_h" == "yes"; then
+	    if test "$ac_cv_header_pcreposix_h" = "yes"; then
 		    AC_MSG_CHECKING(for utf8 enabled pcre)
 		    AC_CACHE_VAL(cyrus_cv_pcre_utf8, AC_TRY_CPP([#include <pcreposix.h>
 #ifndef REG_UTF8
@@ -415,13 +415,13 @@ if test "$sievedir" != "no"; then
 	    fi
 	fi
 
-	if test "$cyrus_cv_pcre_utf8" == "yes"; then
+	if test "$cyrus_cv_pcre_utf8" = "yes"; then
 		LIBS="$LIBS -lpcre -lpcreposix";
 		AC_DEFINE(ENABLE_REGEX, [], [Do we have a regex library?])
 		AC_DEFINE(HAVE_PCREPOSIX_H, [], [Do we have usable pcre library?])
 	else 
 		AC_CHECK_HEADERS(rxposix.h)
-		if test "$ac_cv_header_rxposix_h" == "yes"; then
+		if test "$ac_cv_header_rxposix_h" = "yes"; then
 			LIBS="$LIBS -lrx"
 			AC_DEFINE(ENABLE_REGEX, [],
 				  [Do we have a regex library?])
@@ -1171,7 +1171,7 @@ dnl add perl cccdlflags when building li
 dnl libraries will be compiled as PIC if perl requires PIC objects
 dnl -- this is needed on NetBSD and Linux, but seems to cause problems on atleast Solaris --
     case "${target_os}" in
-        linux*|netbsd*)
+        linux*|netbsd*|freebsd*|dragonfly*)
             AC_MSG_CHECKING(for perl cccdlflags needed on "${target_os}")
             eval `${PERL} -V:cccdlflags`
             PERL_CCCDLFLAGS="$cccdlflags"
