Changeset 21345


Ignore:
Timestamp:
12/14/09 16:33:06 (11 years ago)
Author:
ak19
Message:

Added enable-indexer processing.

Location:
main/trunk/gs2build
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gs2build/configure.in

    r19844 r21345  
    7272AC_DEFINE(USE_SQLITE, $USE_SQLITE)
    7373AC_SUBST(USE_SQLITE)
     74
     75dnl
     76dnl Set compilation of MG (enabled by default)
     77dnl
     78AC_ARG_ENABLE(mg, [  --disable-mg    Disable MG compilation], ENABLE_MG=$enableval, ENABLE_MG=yes)
     79if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
     80  ENABLE_MG=1
     81  AC_DEFINE(ENABLE_MG,[])
     82 else
     83  ENABLE_MG=0
     84 fi
     85AC_SUBST(ENABLE_MG)
     86
     87
     88dnl
     89dnl Set compilation of MGPP (enabled by default)
     90dnl
     91AC_ARG_ENABLE(mgpp, [  --disable-mgpp        Disable MGPP compilation], ENABLE_MGPP=$enableval, ENABLE_MGPP=yes)
     92if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
     93  ENABLE_MGPP=1
     94  AC_DEFINE(ENABLE_MGPP,[])
     95else
     96  ENABLE_MGPP=0
     97fi
     98AC_SUBST(ENABLE_MGPP)
     99
     100dnl
     101dnl Set compilation of lucene (enabled by default)
     102dnl
     103AC_ARG_ENABLE(lucene, [  --disable-lucene        Disable Lucene compilation], ENABLE_LUCENE=$enableval, ENABLE_LUCENE=yes)
     104if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
     105  ENABLE_LUCENE=1
     106  AC_DEFINE(ENABLE_LUCENE, [])
     107else
     108  ENABLE_LUCENE=0
     109fi
     110AC_SUBST(ENABLE_LUCENE)
    74111
    75112dnl Checks for programs.
  • main/trunk/gs2build/win32.mak

    r18176 r21345  
    3333USE_Z3950 = 0
    3434
     35# by default, all indexers are enabled
     36ENABLE_MG = 1
     37ENABLE_MGPP = 1
     38ENABLE_LUCENE = 1
     39
    3540MDEFINES = /f win32.mak
    3641
     
    5156!IF $(USE_SQLITE)
    5257MAKECMD = $(MAKECMD) USE_SQLITE=1
     58!ENDIF
     59!IF "$(ENABLE_MG)" == ""
     60MAKECMD = $(MAKECMD) ENABLE_MG=1
     61!ELSE
     62MAKECMD = $(MAKECMD) ENABLE_MG=$(ENABLE_MG)
     63!ENDIF
     64!IF "$(ENABLE_MGPP)" == ""
     65MAKECMD = $(MAKECMD) ENABLE_MGPP=1
     66!ELSE
     67MAKECMD = $(MAKECMD) ENABLE_MGPP=$(ENABLE_MGPP)
     68!ENDIF
     69!IF "$(ENABLE_LUCENE)" == ""
     70MAKECMD = $(MAKECMD) ENABLE_LUCENE=1
     71!ELSE
     72MAKECMD = $(MAKECMD) ENABLE_LUCENE=$(ENABLE_LUCENE)
    5373!ENDIF
    5474
Note: See TracChangeset for help on using the changeset viewer.