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

    r21364 r22058  
    275275ac_subdirs_all="$ac_subdirs_all mg"
    276276ac_subdirs_all="$ac_subdirs_all mgpp"
    277 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ENABLE_ACCENTFOLD ENABLE_JNI ENABLE_MG ENABLE_MGPP ENABLE_LUCENE COMPAT32BITFLAGS JAVAC JAVA uudecode subdirs LIBOBJS LTLIBOBJS'
     277ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS USE_JDBM USE_GDBM ENABLE_ACCENTFOLD ENABLE_JNI ENABLE_MG ENABLE_MGPP ENABLE_LUCENE COMPAT32BITFLAGS JAVAC JAVA uudecode subdirs LIBOBJS LTLIBOBJS'
    278278ac_subst_files=''
    279279
     
    786786  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    787787  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    788   --disable-accentfolding    Disable Accent Folding support
     788  --disable-jdbm        Disable JDBM compilation
     789  --disable-gdbm        Disable GDBM compilation
     790  --disable-accentfold    Disable Accent Folding for MGPP
    789791  --enable-jni    Enable JNI compilation
    790792  --disable-mg        Disable MG compilation
     
    12331235
    12341236
    1235 # Check whether --enable-accentfolding or --disable-accentfolding was given.
    1236 if test "${enable_accentfolding+set}" = set; then
    1237   enableval="$enable_accentfolding"
     1237
     1238# Check whether --enable-jdbm or --disable-jdbm was given.
     1239if test "${enable_jdbm+set}" = set; then
     1240  enableval="$enable_jdbm"
     1241  USE_JDBM=$enableval
     1242else
     1243  USE_JDBM=yes
     1244fi;
     1245if test $USE_JDBM = "yes" -o $USE_JDBM = "1" ; then
     1246  USE_JDBM=1
     1247  cat >>confdefs.h <<\_ACEOF
     1248#define USE_JDBM
     1249_ACEOF
     1250
     1251else
     1252  USE_JDBM=0
     1253fi
     1254
     1255
     1256# Check whether --enable-gdbm or --disable-gdbm was given.
     1257if test "${enable_gdbm+set}" = set; then
     1258  enableval="$enable_gdbm"
     1259  USE_GDBM=$enableval
     1260else
     1261  USE_GDBM=yes
     1262fi;
     1263if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
     1264  USE_GDBM=1
     1265  cat >>confdefs.h <<\_ACEOF
     1266#define USE_GDBM
     1267_ACEOF
     1268
     1269else
     1270  USE_GDBM=0
     1271fi
     1272
     1273
     1274
     1275# Check whether --enable-accentfold or --disable-accentfold was given.
     1276if test "${enable_accentfold+set}" = set; then
     1277  enableval="$enable_accentfold"
     1278  ENABLE_ACCENTFOLD=$enableval
     1279else
     1280  ENABLE_ACCENTFOLD=yes
     1281fi;
     1282if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
     1283  ENABLE_ACCENTFOLD=1
     1284  cat >>confdefs.h <<\_ACEOF
     1285#define ENABLE_ACCENTFOLD
     1286_ACEOF
     1287
     1288else
    12381289  ENABLE_ACCENTFOLD=0
    1239 else
    1240   ENABLE_ACCENTFOLD=1
    1241 fi;
    1242 cat >>confdefs.h <<_ACEOF
    1243 #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
    1244 _ACEOF
    1245 
     1290fi
    12461291
    12471292
     
    14281473CLASS_TEST=Test.class
    14291474cat << \EOF > $JAVA_TEST
    1430 /* #line 1430 "configure" */
     1475/* #line 1475 "configure" */
    14311476public class Test {
    14321477}
     
    15981643        ac_cv_prog_uudecode_base64=yes
    15991644else
    1600         echo "configure: 1600: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
     1645        echo "configure: 1645: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
    16011646        echo "configure: failed file was:" >&5
    16021647        cat Test.uue >&5
     
    17161761CLASS_TEST=Test.class
    17171762cat << \EOF > $JAVA_TEST
    1718 /* #line 1718 "configure" */
     1763/* #line 1763 "configure" */
    17191764public class Test {
    17201765}
     
    17531798TEST=Test
    17541799cat << \EOF > $JAVA_TEST
    1755 /* [#]line 1755 "configure" */
     1800/* [#]line 1800 "configure" */
    17561801public class Test {
    17571802public static void main (String args[]) {
     
    25092554s,@ECHO_T@,$ECHO_T,;t t
    25102555s,@LIBS@,$LIBS,;t t
     2556s,@USE_JDBM@,$USE_JDBM,;t t
     2557s,@USE_GDBM@,$USE_GDBM,;t t
    25112558s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
    25122559s,@ENABLE_JNI@,$ENABLE_JNI,;t t
Note: See TracChangeset for help on using the changeset viewer.