Update of /cvsroot/mahogany/M
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17514
Modified Files:
configure configure.in makeopts.in
Log Message:
added support of building spam filter modules and dspam in particular under Unix
Index: configure
===================================================================
RCS file: /cvsroot/mahogany/M/configure,v
retrieving revision 1.318
retrieving revision 1.319
diff -b -u -2 -r1.318 -r1.319
--- configure 2 May 2004 12:50:22 -0000 1.318
+++ configure 8 Jul 2004 22:06:38 -0000 1.319
@@ -33,4 +33,6 @@
--with-python=xxx one of none/static/dynamic"
ac_help="$ac_help
+ --with-dspam use DSPAM for spam filtering"
+ac_help="$ac_help
--without-swig don't use swig even if it is available"
ac_help="$ac_help
@@ -655,5 +657,5 @@
echo $ac_n "checking for debugging""... $ac_c" 1>&6
-echo "configure:658: checking for debugging" >&5
+echo "configure:660: checking for debugging" >&5
[...1551 lines suppressed...]
@@ -5398,5 +5505,5 @@
if test "x$GXX" != "xyes"; then
echo $ac_n "checking whether ${CXX} accepts ${DEPFLAGS}""... $ac_c" 1>&6
-echo "configure:5401: checking whether ${CXX} accepts ${DEPFLAGS}" >&5
+echo "configure:5508: checking whether ${CXX} accepts ${DEPFLAGS}" >&5
if eval "test \"`echo '$''{'m_cv_cxx_depflags'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -5421,5 +5528,5 @@
if test "x$GCC" != "xyes"; then
echo $ac_n "checking whether ${CC} accepts ${DEPFLAGS}""... $ac_c" 1>&6
-echo "configure:5424: checking whether ${CC} accepts ${DEPFLAGS}" >&5
+echo "configure:5531: checking whether ${CC} accepts ${DEPFLAGS}" >&5
if eval "test \"`echo '$''{'m_cv_c_depflags'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -5693,4 +5800,5 @@
[EMAIL PROTECTED]@%$MAKE_PISOCKLIB%g
[EMAIL PROTECTED]@%$MAKE_HAVE_LIBMAL%g
[EMAIL PROTECTED]@%$MAKE_USE_DSPAM%g
[EMAIL PROTECTED]@%$MAKE_USE_MODULES%g
[EMAIL PROTECTED]@%$MODULELDFLAGS%g
Index: configure.in
===================================================================
RCS file: /cvsroot/mahogany/M/configure.in,v
retrieving revision 1.304
retrieving revision 1.305
diff -b -u -2 -r1.304 -r1.305
--- configure.in 2 May 2004 12:32:57 -0000 1.304
+++ configure.in 8 Jul 2004 22:06:45 -0000 1.305
@@ -116,4 +116,7 @@
--with-python=xxx one of none/static/dynamic)
+M_OVERRIDES(dspam,DSPAM spam filter,USE_DSPAM,1,
+--with-dspam use DSPAM for spam filtering)
+
dnl choose how to use Python: normally, dynamic loading is preferred, but it
dnl doesn't work under Mac (we need Python.bundle, but all we have is Python
@@ -1148,4 +1151,26 @@
dnl --------------------------------------------------------------------------
+dnl check whether we use dspam
+dnl --------------------------------------------------------------------------
+
+MAKE_USE_DSPAM=
+case "$USE_DSPAM" in
+ 1)
+ dnl check for sqlite as we use sqlite driver for dspam
+ dnl
+ dnl TODO: support for other drivers
+ AC_CHECK_HEADER(sqlite.h,
+ AC_CHECK_LIB(sqlite, main,
+ MAKE_USE_DSPAM="USE_DSPAM=1",
+ AC_MSG_WARN(Cannot find sqlite library - support for DSPAM disabled.)
+ ),
+ AC_MSG_WARN(Cannot find sqlite header - support for DSPAM disabled.)
+ )
+ ;;
+esac
+
+AC_SUBST(MAKE_USE_DSPAM)
+
+dnl --------------------------------------------------------------------------
dnl How do we want to use modules?
dnl --------------------------------------------------------------------------
Index: makeopts.in
===================================================================
RCS file: /cvsroot/mahogany/M/makeopts.in,v
retrieving revision 1.108
retrieving revision 1.109
diff -b -u -2 -r1.108 -r1.109
--- makeopts.in 12 Jan 2004 23:44:02 -0000 1.108
+++ makeopts.in 8 Jul 2004 22:06:45 -0000 1.109
@@ -30,4 +30,5 @@
# this will be set or unset
@MAKE_USE_PYTHON@
[EMAIL PROTECTED]@
@MAKE_DEBUG@
@MAKE_EXPERIMENTAL@
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates