Changeset 21328 for main/trunk/greenstone2/common-src/indexers/configure.ac
- Timestamp:
- 2009-12-09T21:49:32+13:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/common-src/indexers/configure.ac
r20832 r21328 3 3 dnl 4 4 5 AC_INIT(mgpp/text/MGQuery.cpp) 6 AC_ARG_ENABLE(accentfolding, [ --disable-accentfold Disable Accent Folding support], ENABLE_ACCENTFOLD=0, ENABLE_ACCENTFOLD=1) 5 dnl AC_INIT(mgpp/text/MGQuery.cpp) 6 dnl http://www.gnu.org/software/hello/manual/autoconf/Initializing-configure.html 7 AC_INIT() 8 AC_ARG_ENABLE(accentfolding, [ --disable-accentfolding Disable Accent Folding support], ENABLE_ACCENTFOLD=0, ENABLE_ACCENTFOLD=1) 7 9 AC_DEFINE_UNQUOTED(ENABLE_ACCENTFOLD, $ENABLE_ACCENTFOLD) 8 10 AC_SUBST(ENABLE_ACCENTFOLD) 11 12 13 dnl 14 dnl Set compilation of MG (enabled by default) 15 dnl 16 AC_ARG_ENABLE(mg, [ --disable-mg Disable MG compilation], ENABLE_MG=$enableval, ENABLE_MG=yes) 17 if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then 18 ENABLE_MG=1 19 AC_DEFINE(ENABLE_MG,[]) 20 else 21 ENABLE_MG=0 22 fi 23 AC_SUBST(ENABLE_MG) 24 25 26 dnl 27 dnl Set compilation of MGPP (enabled by default) 28 dnl 29 AC_ARG_ENABLE(mgpp, [ --disable-mgpp Disable MGPP compilation], ENABLE_MGPP=$enableval, ENABLE_MGPP=yes) 30 if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then 31 ENABLE_MGPP=1 32 AC_DEFINE(ENABLE_MGPP,[]) 33 else 34 ENABLE_MGPP=0 35 fi 36 AC_SUBST(ENABLE_MGPP) 37 38 dnl 39 dnl Set compilation of Lucene (enabled by default) 40 dnl 41 AC_ARG_ENABLE(lucene, [ --disable-lucene Disable Lucene compilation], ENABLE_LUCENE=$enableval, ENABLE_LUCENE=yes) 42 if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then 43 ENABLE_LUCENE=1 44 AC_DEFINE(ENABLE_LUCENE,[]) 45 else 46 ENABLE_LUCENE=0 47 fi 48 AC_SUBST(ENABLE_LUCENE) 49 9 50 10 51 AC_DEFINE_UNQUOTED(COMPAT32BITFLAGS, $COMPAT32BITFLAGS) … … 32 73 fi 33 74 34 AC_CONFIG_SUBDIRS(mg mgpp) 75 dnl AC_CONFIG_SUBDIRS(mg mgpp) 76 77 if test $ENABLE_MG = 1; then 78 if test ! -d mg; then 79 echo "***** Folder mg does not exist, cannot ENABLE_MG."; 80 exit 1; 81 fi 82 AC_CONFIG_SUBDIRS(mg) 83 fi 84 85 if test $ENABLE_MGPP = 1; then 86 if test ! -d mgpp; then 87 echo "***** Folder mgpp does not exist, cannot ENABLE_MGPP."; 88 exit 1; 89 fi 90 AC_CONFIG_SUBDIRS(mgpp) 91 fi 92 93 if test $ENABLE_LUCENE = 1; then 94 if test ! -d lucene-gs; then 95 echo "***** Folder lucene-gs does not exist, cannot ENABLE_LUCENE."; 96 exit 1; 97 fi 98 fi 35 99 36 100 AC_OUTPUT(Makefile)
Note:
See TracChangeset
for help on using the changeset viewer.