Changeset 21446
- Timestamp:
- 2010-01-12T16:25:17+13:00 (14 years ago)
- Location:
- main/trunk/greenstone2
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/build-src/configure.in
r21440 r21446 34 34 dnl Set use of corba 35 35 dnl 36 AC_ARG_ENABLE(corba, [ --enable-corba Enable CORBA support], USE_CORBA=1, USE_CORBA=0) 37 AC_DEFINE_UNQUOTED(USE_CORBA, $USE_CORBA) 36 AC_ARG_ENABLE(corba, [ --enable-corba Enable CORBA support], USE_CORBA=$enableval, USE_CORBA=no) 37 if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then 38 USE_CORBA=1 39 AC_DEFINE(USE_CORBA,[]) 40 else 41 USE_CORBA=0 42 fi 38 43 AC_SUBST(USE_CORBA) 39 44 … … 45 50 dnl Set use of z39.50 46 51 dnl 47 AC_ARG_ENABLE(z3950, [ --enable-z3950 Enable Z39.50 client support], USE_Z3950=1, USE_Z3950=0) 48 if test USE_Z3950 = 1; then 49 AC_DEFINE(USE_Z3950, $USE_Z3950) 52 AC_ARG_ENABLE(z3950, [ --enable-z3950 Enable Z39.50 client support], USE_Z3950=$enableval, USE_Z3950=no) 53 if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then 54 USE_Z3950=1 55 AC_DEFINE(USE_Z3950,[]) 56 else 57 USE_Z3950=0 58 fi 50 59 AC_SUBST(USE_Z3950) 51 fi52 60 53 61 dnl 54 62 dnl Set use of yaz - now compiled by default even when z3950 support not required 55 63 dnl 56 AC_ARG_ENABLE(yaz, [ --disable-yaz Disable YAZ compilation], USE_YAZ=0, USE_YAZ=1) 57 dnl if test USE_YAZ = 1; then 58 AC_DEFINE(USE_YAZ, $USE_YAZ) 64 AC_ARG_ENABLE(yaz, [ --disable-yaz Disable YAZ compilation], USE_YAZ=$enableval, USE_YAZ=yes) 65 if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then 66 USE_YAZ=1 67 AC_DEFINE(USE_YAZ,[]) 68 else 69 USE_YAZ=0 70 fi 59 71 AC_SUBST(USE_YAZ) 60 dnl fi61 72 62 73 dnl 63 74 dnl disable compilation of accent folding stuff for mgpp (and one day mg) 64 75 dnl 65 AC_ARG_ENABLE(accentfold, [ --disable-accentfold Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=0, ENABLE_ACCENTFOLD=1) 66 AC_DEFINE(ENABLE_ACCENTFOLD, $ENABLE_ACCENTFOLD) 76 AC_ARG_ENABLE(accentfold, [ --disable-accentfold Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=$enableval, ENABLE_ACCENTFOLD=yes) 77 if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then 78 ENABLE_ACCENTFOLD=1 79 AC_DEFINE(ENABLE_ACCENTFOLD,[]) 80 else 81 ENABLE_ACCENTFOLD=0 82 fi 67 83 AC_SUBST(ENABLE_ACCENTFOLD) 68 84 … … 70 86 dnl Set use of SQLite (enabled by default) 71 87 dnl 72 AC_ARG_ENABLE(sqlite, [ --disable-sqlite Disable SQLite support], USE_SQLITE=0, USE_SQLITE=1) 73 AC_DEFINE(USE_SQLITE, $USE_SQLITE) 88 AC_ARG_ENABLE(sqlite, [ --disable-sqlite Disable SQLite support], USE_SQLITE=$enableval, USE_SQLITE=yes) 89 if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then 90 USE_SQLITE=1 91 AC_DEFINE(USE_SQLITE,[]) 92 else 93 USE_SQLITE=0 94 fi 74 95 AC_SUBST(USE_SQLITE) 75 96 -
main/trunk/greenstone2/common-src/configure.in
r21440 r21446 36 36 dnl Set use of corba 37 37 dnl 38 AC_ARG_ENABLE(corba, [ --enable-corba Enable CORBA support], USE_CORBA=1, USE_CORBA=0) 39 AC_DEFINE_UNQUOTED(USE_CORBA, $USE_CORBA) 38 AC_ARG_ENABLE(corba, [ --enable-corba Enable CORBA support], USE_CORBA=$enableval, USE_CORBA=no) 39 if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then 40 USE_CORBA=1 41 AC_DEFINE(USE_CORBA,[]) 42 else 43 USE_CORBA=0 44 fi 40 45 AC_SUBST(USE_CORBA) 41 46 … … 47 52 dnl Set use of z39.50 48 53 dnl 49 AC_ARG_ENABLE(z3950, [ --enable-z3950 Enable Z39.50 client support], USE_Z3950=1, USE_Z3950=0) 50 if test USE_Z3950 = 1; then 51 AC_DEFINE(USE_Z3950, $USE_Z3950) 54 AC_ARG_ENABLE(z3950, [ --enable-z3950 Enable Z39.50 client support], USE_Z3950=$enableval, USE_Z3950=no) 55 if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then 56 USE_Z3950=1 57 AC_DEFINE(USE_Z3950,[]) 58 else 59 USE_Z3950=0 60 fi 52 61 AC_SUBST(USE_Z3950) 53 fi54 62 55 63 dnl 56 64 dnl Set use of yaz - now compiled by default even when z3950 support not required 57 65 dnl 58 AC_ARG_ENABLE(yaz, [ --disable-yaz Disable YAZ compilation], USE_YAZ=0, USE_YAZ=1) 59 dnl if test USE_YAZ = 1; then 60 AC_DEFINE(USE_YAZ, $USE_YAZ) 66 AC_ARG_ENABLE(yaz, [ --disable-yaz Disable YAZ compilation], USE_YAZ=$enableval, USE_YAZ=yes) 67 if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then 68 USE_YAZ=1 69 AC_DEFINE(USE_YAZ,[]) 70 else 71 USE_YAZ=0 72 fi 61 73 AC_SUBST(USE_YAZ) 62 dnl fi63 74 64 75 dnl 65 76 dnl disable compilation of accent folding stuff for mgpp (and one day mg) 66 77 dnl 67 AC_ARG_ENABLE(accentfold, [ --disable-accentfold Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=0, ENABLE_ACCENTFOLD=1) 68 AC_DEFINE(ENABLE_ACCENTFOLD, $ENABLE_ACCENTFOLD) 78 AC_ARG_ENABLE(accentfold, [ --disable-accentfold Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=$enableval, ENABLE_ACCENTFOLD=yes) 79 if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then 80 ENABLE_ACCENTFOLD=1 81 AC_DEFINE(ENABLE_ACCENTFOLD,[]) 82 else 83 ENABLE_ACCENTFOLD=0 84 fi 69 85 AC_SUBST(ENABLE_ACCENTFOLD) 70 86 … … 84 100 dnl Set use of SQLite (enabled by default) 85 101 dnl 86 AC_ARG_ENABLE(sqlite, [ --disable-sqlite Disable SQLite support], USE_SQLITE=0, USE_SQLITE=1) 87 AC_DEFINE(USE_SQLITE, $USE_SQLITE) 102 AC_ARG_ENABLE(sqlite, [ --disable-sqlite Disable SQLite support], USE_SQLITE=$enableval, USE_SQLITE=yes) 103 if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then 104 USE_SQLITE=1 105 AC_DEFINE(USE_SQLITE,[]) 106 else 107 USE_SQLITE=0 108 fi 88 109 AC_SUBST(USE_SQLITE) 89 110 -
main/trunk/greenstone2/common-src/indexers/configure.ac
r21364 r21446 6 6 dnl http://www.gnu.org/software/hello/manual/autoconf/Initializing-configure.html 7 7 AC_INIT() 8 AC_ARG_ENABLE(accentfolding, [ --disable-accentfolding Disable Accent Folding support], ENABLE_ACCENTFOLD=0, ENABLE_ACCENTFOLD=1) 9 AC_DEFINE_UNQUOTED(ENABLE_ACCENTFOLD, $ENABLE_ACCENTFOLD) 8 AC_ARG_ENABLE(accentfold, [ --disable-accentfold Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=$enableval, ENABLE_ACCENTFOLD=yes) 9 if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then 10 ENABLE_ACCENTFOLD=1 11 AC_DEFINE(ENABLE_ACCENTFOLD,[]) 12 else 13 ENABLE_ACCENTFOLD=0 14 fi 10 15 AC_SUBST(ENABLE_ACCENTFOLD) 11 16 -
main/trunk/greenstone2/common-src/indexers/mgpp/configure.in
r20845 r21446 40 40 dnl disable compilation of accent folding stuff for mgpp (and one day mg) 41 41 dnl 42 AC_ARG_ENABLE(accentfold, [ --disable-accentfold Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=0, ENABLE_ACCENTFOLD=1) 43 AC_DEFINE(ENABLE_ACCENTFOLD, $ENABLE_ACCENTFOLD) 42 AC_ARG_ENABLE(accentfold, [ --disable-accentfold Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=$enableval, ENABLE_ACCENTFOLD=yes) 43 if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then 44 ENABLE_ACCENTFOLD=1 45 AC_DEFINE(ENABLE_ACCENTFOLD,[]) 46 else 47 ENABLE_ACCENTFOLD=0 48 fi 44 49 AC_SUBST(ENABLE_ACCENTFOLD) 45 50 -
main/trunk/greenstone2/configure.in
r21432 r21446 34 34 dnl Set use of corba 35 35 dnl 36 AC_ARG_ENABLE(corba, [ --enable-corba Enable CORBA support], USE_CORBA=1, USE_CORBA=0) 37 AC_DEFINE_UNQUOTED(USE_CORBA, $USE_CORBA) 36 AC_ARG_ENABLE(corba, [ --enable-corba Enable CORBA support], USE_CORBA=$enableval, USE_CORBA=no) 37 if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then 38 USE_CORBA=1 39 AC_DEFINE(USE_CORBA,[]) 40 else 41 USE_CORBA=0 42 fi 38 43 AC_SUBST(USE_CORBA) 39 44 … … 45 50 dnl Set use of z39.50 46 51 dnl 47 AC_ARG_ENABLE(z3950, [ --enable-z3950 Enable Z39.50 client support], USE_Z3950=1, USE_Z3950=0) 48 if test USE_Z3950 = 1; then 49 AC_DEFINE(USE_Z3950, $USE_Z3950) 52 AC_ARG_ENABLE(z3950, [ --enable-z3950 Enable Z39.50 client support], USE_Z3950=$enableval, USE_Z3950=no) 53 if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then 54 USE_Z3950=1 55 AC_DEFINE(USE_Z3950,[]) 56 else 57 USE_Z3950=0 58 fi 50 59 AC_SUBST(USE_Z3950) 51 fi52 60 53 61 dnl 54 62 dnl Set use of yaz - now compiled by default even when z3950 support not required 55 63 dnl 56 AC_ARG_ENABLE(yaz, [ --disable-yaz Disable YAZ compilation], USE_YAZ=0, USE_YAZ=1) 57 dnl if test USE_YAZ = 1; then 58 AC_DEFINE(USE_YAZ, $USE_YAZ) 64 AC_ARG_ENABLE(yaz, [ --disable-yaz Disable YAZ compilation], USE_YAZ=$enableval, USE_YAZ=yes) 65 if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then 66 USE_YAZ=1 67 AC_DEFINE(USE_YAZ,[]) 68 else 69 USE_YAZ=0 70 fi 59 71 AC_SUBST(USE_YAZ) 60 dnl fi61 72 62 73 dnl 63 74 dnl disable compilation of accent folding stuff for mgpp (and one day mg) 64 75 dnl 65 AC_ARG_ENABLE(accentfold, [ --disable-accentfold Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=0, ENABLE_ACCENTFOLD=1) 66 AC_DEFINE(ENABLE_ACCENTFOLD, $ENABLE_ACCENTFOLD) 76 AC_ARG_ENABLE(accentfold, [ --disable-accentfold Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=$enableval, ENABLE_ACCENTFOLD=yes) 77 if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then 78 ENABLE_ACCENTFOLD=1 79 AC_DEFINE(ENABLE_ACCENTFOLD,[]) 80 else 81 ENABLE_ACCENTFOLD=0 82 fi 67 83 AC_SUBST(ENABLE_ACCENTFOLD) 68 84 69 dnl70 dnl Set use of JDBM (enabled by default)71 dnl72 85 dnl 73 86 dnl Set use of JDBM (enabled by default) … … 85 98 dnl Set use of SQLite (enabled by default) 86 99 dnl 87 AC_ARG_ENABLE(sqlite, [ --disable-sqlite Disable SQLite support], USE_SQLITE=0, USE_SQLITE=1) 88 AC_DEFINE(USE_SQLITE, $USE_SQLITE) 100 AC_ARG_ENABLE(sqlite, [ --disable-sqlite Disable SQLite support], USE_SQLITE=$enableval, USE_SQLITE=yes) 101 if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then 102 USE_SQLITE=1 103 AC_DEFINE(USE_SQLITE,[]) 104 else 105 USE_SQLITE=0 106 fi 89 107 AC_SUBST(USE_SQLITE) 90 108 … … 93 111 dnl 94 112 if test -d runtime-src; then 95 AC_ARG_ENABLE(apache-httpd, [ --enable-apache-httpd Enable Apache httpd support], USE_APACHE_HTTPD=1, USE_APACHE_HTTPD=0) 96 AC_DEFINE(USE_APACHE_HTTPD, $USE_APACHE_HTTPD) 113 AC_ARG_ENABLE(apache-httpd, [ --enable-apache-httpd Enable Apache httpd support], USE_APACHE_HTTPD=$enableval, USE_APACHE_HTTPD=no) 114 if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then 115 USE_APACHE_HTTPD=1 116 AC_DEFINE(USE_APACHE_HTTPD,[]) 117 else 118 USE_APACHE_HTTPD=0 119 fi 97 120 AC_SUBST(USE_APACHE_HTTPD) 98 121 fi … … 141 164 if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then 142 165 ENABLE_LUCENE=1 143 AC_DEFINE(ENABLE_LUCENE, 166 AC_DEFINE(ENABLE_LUCENE,[]) 144 167 else 145 168 ENABLE_LUCENE=0 -
main/trunk/greenstone2/runtime-src/configure.in
r21440 r21446 35 35 dnl Set use of corba 36 36 dnl 37 AC_ARG_ENABLE(corba, [ --enable-corba Enable CORBA support], USE_CORBA=1, USE_CORBA=0) 38 AC_DEFINE_UNQUOTED(USE_CORBA, $USE_CORBA) 37 AC_ARG_ENABLE(corba, [ --enable-corba Enable CORBA support], USE_CORBA=$enableval, USE_CORBA=no) 38 if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then 39 USE_CORBA=1 40 AC_DEFINE(USE_CORBA,[]) 41 else 42 USE_CORBA=0 43 fi 39 44 AC_SUBST(USE_CORBA) 40 45 … … 46 51 dnl Set use of z39.50 47 52 dnl 48 AC_ARG_ENABLE(z3950, [ --enable-z3950 Enable Z39.50 client support], USE_Z3950=1, USE_Z3950=0) 49 if test USE_Z3950 = 1; then 50 AC_DEFINE(USE_Z3950, $USE_Z3950) 53 AC_ARG_ENABLE(z3950, [ --enable-z3950 Enable Z39.50 client support], USE_Z3950=$enableval, USE_Z3950=no) 54 if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then 55 USE_Z3950=1 56 AC_DEFINE(USE_Z3950,[]) 57 else 58 USE_Z3950=0 59 fi 51 60 AC_SUBST(USE_Z3950) 52 fi53 61 54 62 dnl 55 63 dnl Set use of yaz - now compiled by default even when z3950 support not required 56 64 dnl 57 AC_ARG_ENABLE(yaz, [ --disable-yaz Disable YAZ compilation], USE_YAZ=0, USE_YAZ=1) 58 dnl if test USE_YAZ = 1; then 59 AC_DEFINE(USE_YAZ, $USE_YAZ) 65 AC_ARG_ENABLE(yaz, [ --disable-yaz Disable YAZ compilation], USE_YAZ=$enableval, USE_YAZ=yes) 66 if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then 67 USE_YAZ=1 68 AC_DEFINE(USE_YAZ,[]) 69 else 70 USE_YAZ=0 71 fi 60 72 AC_SUBST(USE_YAZ) 61 dnl fi62 73 63 74 dnl 64 75 dnl disable compilation of accent folding stuff for mgpp (and one day mg) 65 76 dnl 66 AC_ARG_ENABLE(accentfold, [ --disable-accentfold Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=0, ENABLE_ACCENTFOLD=1) 67 AC_DEFINE(ENABLE_ACCENTFOLD, $ENABLE_ACCENTFOLD) 77 AC_ARG_ENABLE(accentfold, [ --disable-accentfold Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=$enableval, ENABLE_ACCENTFOLD=yes) 78 if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then 79 ENABLE_ACCENTFOLD=1 80 AC_DEFINE(ENABLE_ACCENTFOLD,[]) 81 else 82 ENABLE_ACCENTFOLD=0 83 fi 68 84 AC_SUBST(ENABLE_ACCENTFOLD) 69 85 … … 71 87 dnl Set use of SQLite (enabled by default) 72 88 dnl 73 AC_ARG_ENABLE(sqlite, [ --disable-sqlite Disable SQLite support], USE_SQLITE=0, USE_SQLITE=1) 74 AC_DEFINE(USE_SQLITE, $USE_SQLITE) 89 AC_ARG_ENABLE(sqlite, [ --disable-sqlite Disable SQLite support], USE_SQLITE=$enableval, USE_SQLITE=yes) 90 if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then 91 USE_SQLITE=1 92 AC_DEFINE(USE_SQLITE,[]) 93 else 94 USE_SQLITE=0 95 fi 75 96 AC_SUBST(USE_SQLITE) 76 97 … … 78 99 dnl Set use of Apache httpd (disabled by default) 79 100 dnl 80 AC_ARG_ENABLE(apache-httpd, [ --enable-apache-httpd Enable Apache httpd support], USE_APACHE_HTTPD=1, USE_APACHE_HTTPD=0) 81 AC_DEFINE(USE_APACHE_HTTPD, $USE_APACHE_HTTPD) 82 AC_SUBST(USE_APACHE_HTTPD) 101 if test -d runtime-src; then 102 AC_ARG_ENABLE(apache-httpd, [ --enable-apache-httpd Enable Apache httpd support], USE_APACHE_HTTPD=$enableval, USE_APACHE_HTTPD=no) 103 if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then 104 USE_APACHE_HTTPD=1 105 AC_DEFINE(USE_APACHE_HTTPD,[]) 106 else 107 USE_APACHE_HTTPD=0 108 fi 109 AC_SUBST(USE_APACHE_HTTPD) 110 fi 83 111 84 112 dnl
Note:
See TracChangeset
for help on using the changeset viewer.