Ignore:
Timestamp:
2009-12-16T14:10:51+13:00 (14 years ago)
Author:
ak19
Message:

New configuration and compilation flag ENABLE_JNI added which will be disabled by default for GS2 since in general GS doesn't need mg and mgpp compiled up with jni. GS3's build.xml will need to explicitly set ENABLE_JNI to compile mg and mgpp with jni.

File:
1 edited

Legend:

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

    r21327 r21365  
    7575AC_DEFINE(USE_SQLITE, $USE_SQLITE)
    7676AC_SUBST(USE_SQLITE)
     77
     78dnl
     79dnl Set compilation of JNI parts of MG and MGPP indexers (disabled by default, which is GS2's default behaviour)
     80dnl
     81AC_ARG_ENABLE(jni, [  --enable-jni    Enable JNI compilation], ENABLE_JNI=$enableval, ENABLE_JNI=no)
     82if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
     83  ENABLE_JNI=1
     84  AC_DEFINE(ENABLE_JNI,[])
     85else
     86  ENABLE_JNI=0
     87fi
     88AC_SUBST(ENABLE_JNI)
    7789
    7890dnl
Note: See TracChangeset for help on using the changeset viewer.