Ignore:
Timestamp:
2010-01-12T16:25:17+13:00 (14 years ago)
Author:
ak19
Message:

Configure files updated to correctly set all the variables that can be ENABLED/DISABLED.

File:
1 edited

Legend:

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

    r21440 r21446  
    3535dnl Set use of corba
    3636dnl
    37 AC_ARG_ENABLE(corba, [  --enable-corba          Enable CORBA support], USE_CORBA=1, USE_CORBA=0)
    38 AC_DEFINE_UNQUOTED(USE_CORBA, $USE_CORBA)
     37AC_ARG_ENABLE(corba, [  --enable-corba          Enable CORBA support], USE_CORBA=$enableval, USE_CORBA=no)
     38if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
     39  USE_CORBA=1
     40  AC_DEFINE(USE_CORBA,[])
     41else
     42  USE_CORBA=0
     43fi
    3944AC_SUBST(USE_CORBA)
    4045
     
    4651dnl Set use of z39.50
    4752dnl
    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)
     53AC_ARG_ENABLE(z3950, [  --enable-z3950          Enable Z39.50 client support], USE_Z3950=$enableval, USE_Z3950=no)
     54if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
     55  USE_Z3950=1
     56  AC_DEFINE(USE_Z3950,[])
     57else
     58  USE_Z3950=0
     59fi
    5160AC_SUBST(USE_Z3950)
    52 fi
    5361
    5462dnl
    5563dnl Set use of yaz - now compiled by default even when z3950 support not required
    5664dnl
    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)
     65AC_ARG_ENABLE(yaz, [  --disable-yaz           Disable YAZ compilation], USE_YAZ=$enableval, USE_YAZ=yes)
     66if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
     67  USE_YAZ=1
     68  AC_DEFINE(USE_YAZ,[])
     69else
     70  USE_YAZ=0
     71fi
    6072AC_SUBST(USE_YAZ)
    61 dnl fi
    6273
    6374dnl
    6475dnl disable compilation of accent folding stuff for mgpp (and one day mg)
    6576dnl
    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)
     77AC_ARG_ENABLE(accentfold, [  --disable-accentfold    Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=$enableval, ENABLE_ACCENTFOLD=yes)
     78if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
     79  ENABLE_ACCENTFOLD=1
     80  AC_DEFINE(ENABLE_ACCENTFOLD,[])
     81else
     82  ENABLE_ACCENTFOLD=0
     83fi
    6884AC_SUBST(ENABLE_ACCENTFOLD)
    6985
     
    7187dnl Set use of SQLite (enabled by default)
    7288dnl
    73 AC_ARG_ENABLE(sqlite, [  --disable-sqlite        Disable SQLite support], USE_SQLITE=0, USE_SQLITE=1)
    74 AC_DEFINE(USE_SQLITE, $USE_SQLITE)
     89AC_ARG_ENABLE(sqlite, [  --disable-sqlite        Disable SQLite support], USE_SQLITE=$enableval, USE_SQLITE=yes)
     90if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
     91  USE_SQLITE=1
     92  AC_DEFINE(USE_SQLITE,[])
     93else
     94  USE_SQLITE=0
     95fi
    7596AC_SUBST(USE_SQLITE)
    7697
     
    7899dnl Set use of Apache httpd (disabled by default)
    79100dnl
    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)
     101if 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)
     110fi
    83111
    84112dnl
Note: See TracChangeset for help on using the changeset viewer.