Ignore:
Timestamp:
2009-12-09T21:50:53+13:00 (14 years ago)
Author:
ak19
Message:

Changes to makefiles, configure files, and source code to work with the new configure flags that allow indexers to be individually compiled up by setting each indexer to be enabled or disabled (enable-mg, enable-mgpp, enable-lucene).

File:
1 edited

Legend:

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

    r20853 r21329  
    8282AC_SUBST(USE_APACHE_HTTPD)
    8383
     84dnl
     85dnl Set compilation of MG (enabled by default)
     86dnl
     87AC_ARG_ENABLE(mg, [  --disable-mg        Disable MG compilation], ENABLE_MG=$enableval, ENABLE_MG=yes)
     88if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
     89  ENABLE_MG=1
     90  AC_DEFINE(ENABLE_MG,[])
     91else
     92  ENABLE_MG=0
     93fi
     94AC_SUBST(ENABLE_MG)
     95
     96dnl
     97dnl Set compilation of MGPP (enabled by default)
     98dnl
     99AC_ARG_ENABLE(mgpp, [  --disable-mgpp        Disable MGPP compilation], ENABLE_MGPP=$enableval, ENABLE_MGPP=yes)
     100if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
     101  ENABLE_MGPP=1
     102  AC_DEFINE(ENABLE_MGPP,[])
     103else
     104  ENABLE_MGPP=0
     105fi
     106AC_SUBST(ENABLE_MGPP)
     107
     108dnl
     109dnl Set compilation of lucene (enabled by default)
     110dnl
     111AC_ARG_ENABLE(lucene, [  --disable-lucene        Disable Lucene compilation], ENABLE_LUCENE=$enableval, ENABLE_LUCENE=yes)
     112if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
     113  ENABLE_LUCENE=1
     114  AC_DEFINE(ENABLE_LUCENE,[])
     115else
     116  ENABLE_LUCENE=0
     117fi
     118AC_SUBST(ENABLE_LUCENE)
    84119
    85120dnl Checks for programs.
Note: See TracChangeset for help on using the changeset viewer.