Ignore:
Timestamp:
2010-05-06T21:23:54+12:00 (14 years ago)
Author:
ak19
Message:

Changes to makefiles to 1. incorporate USE_GDBM and USE_JDBM flags (and USE_SQLITE) in most places so that the DEFINES variable is set at all times. This is necessary to ensure that all classes that contain objects with gdbm and jdbm members are of a consistent size. Else we've had experience with Greenstone crashing with memory errors (to do with the similar ENABLE_indexer flags). 2. ENABLE_JDBM is now USE_JDBM. 3. Not everything works now. It still compiles the default way, but the disable-gdbm flag is causing trouble when compiling argdb in recpt since it uses that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/indexers/configure.ac

    r21446 r22058  
    1 dnl
    2 dnl Disable accent folding
    3 dnl
    41
    52dnl AC_INIT(mgpp/text/MGQuery.cpp)
    63dnl http://www.gnu.org/software/hello/manual/autoconf/Initializing-configure.html
    74AC_INIT()
     5
     6dnl
     7dnl Set use of JDBM (enabled by default)
     8dnl
     9AC_ARG_ENABLE(jdbm, [  --disable-jdbm        Disable JDBM compilation], USE_JDBM=$enableval, USE_JDBM=yes)
     10if test $USE_JDBM = "yes" -o $USE_JDBM = "1" ; then
     11  USE_JDBM=1
     12  AC_DEFINE(USE_JDBM,[])
     13else
     14  USE_JDBM=0
     15fi
     16AC_SUBST(USE_JDBM)
     17
     18dnl
     19dnl Set use of GDBM (enabled by default)
     20dnl
     21AC_ARG_ENABLE(gdbm, [  --disable-gdbm        Disable GDBM compilation], USE_GDBM=$enableval, USE_GDBM=yes)
     22if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
     23  USE_GDBM=1
     24  AC_DEFINE(USE_GDBM,[])
     25else
     26  USE_GDBM=0
     27fi
     28AC_SUBST(USE_GDBM)
     29
     30
     31dnl
     32dnl Disable accent folding
     33dnl
    834AC_ARG_ENABLE(accentfold, [  --disable-accentfold    Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=$enableval, ENABLE_ACCENTFOLD=yes)
    935if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
Note: See TracChangeset for help on using the changeset viewer.