Ignore:
Timestamp:
2010-01-15T15:16:03+13:00 (14 years ago)
Author:
mdewsnip
Message:

Created USE_GDBM and USE_JDBM defines that work similar to USE_SQLITE and USE_MSSQL for controlling which infodb types are compiled in. Currently these are not configurable through the configure scripts and are always on.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/colservr/collectset.cpp

    r21453 r21472  
    2929#include "colservrconfig.h"
    3030#include "gsdlsitecfg.h"
    31 #include "gdbmclass.h"
    32 #include "jdbmnaiveclass.h"
    3331#include "gsdltools.h"
    3432#include "fileutil.h"
     
    5250
    5351#include <assert.h>
     52
     53#ifdef USE_GDBM
     54#include "gdbmclass.h"
     55#endif
     56
     57#ifdef USE_JDBM
     58#include "jdbmnaiveclass.h"
     59#endif
    5460
    5561#ifdef USE_SQLITE
     
    355361#endif
    356362
     363#ifdef USE_JDBM
    357364    if (infodbtype == "jdbm") {
    358365
     
    360367    db_ptr = jdbm_db_ptr;
    361368    }
    362  
     369#endif
     370
    363371    // Use GDBM if the infodb type is empty or not one of the values above
    364372    if (db_ptr == NULL) {
     373#ifdef USE_GDBM
    365374      db_ptr = new gdbmclass();
     375#endif
    366376    }
    367377
Note: See TracChangeset for help on using the changeset viewer.