From 79caf32ef601c9f24ef0cf83c0a0c99083366d0c Mon Sep 17 00:00:00 2001 From: Dave West Date: Mon, 16 Nov 2009 23:08:23 +0000 Subject: [PATCH] configure will now detect the Boehm-Demers-Weiser garbage collection library We don't actually use it yet but we will when I add the libsee javascript engine that recomends it. We will probably need to add the Boehm-Demers-Weiser library to easyinstall since it seems only debian based distros have it as a package. --- citadel/configure.ac | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/citadel/configure.ac b/citadel/configure.ac index 72b2cc06f..bd2562419 100644 --- a/citadel/configure.ac +++ b/citadel/configure.ac @@ -252,6 +252,7 @@ AC_ARG_WITH(ncurses, [ --without-ncurses don't use ncurses]) AC_ARG_WITH(with_ldap, [ --with-ldap use OpenLDAP client library]) dnl AC_ARG_WITH(with_libdspam, [ --with-libdspam use libdspam mail spam scanning library]) +AC_ARG_WITH(with_gc, [ --with-gc use the Boehm-Demers-Weiser garbage collection library]) if test "x$with_db" != xno -a "x$with_db" != xyes -a "$with_db"; then db_dir="$with_db" @@ -707,6 +708,23 @@ fi +dnl Checks for the Boehm-Demers-Weiser garbage collection library. +if test "x$with_gc" != xno ; then + AC_CHECK_HEADERS(gc/gc.h, + [AC_CHECK_LIB(gc, GC_init, + [ok_gc=yes],, + )]) +fi + +if test "x$ok_gc" = xyes ; then + SERVER_LIBS="-lgc $SERVER_LIBS" + AC_DEFINE(HAVE_GC, [], [define this if you have Boehm-Demers-Weiser available]) +fi + + + + + dnl Checks for the libdspam mail spam scanning library. dnl if test "x$with_libdspam" != xno ; then dnl AC_CHECK_HEADERS(dspam/libdspam.h, @@ -1028,6 +1046,7 @@ fi echo ------------------------------------------------------------------------ echo 'LDAP support: ' $ok_ldap echo 'Character set conversion support:' $ok_iconv +echo 'Boehm-Demers-Weiser support: ' $ok_gc dnl echo 'DSpam Scanning support: ' $ok_libdspam echo echo 'Note: if you are not using Linux, make sure you are using GNU make' -- 2.30.2