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/build-src/configure.in

    r21440 r21446  
    3434dnl Set use of corba
    3535dnl
    36 AC_ARG_ENABLE(corba, [  --enable-corba          Enable CORBA support], USE_CORBA=1, USE_CORBA=0)
    37 AC_DEFINE_UNQUOTED(USE_CORBA, $USE_CORBA)
     36AC_ARG_ENABLE(corba, [  --enable-corba          Enable CORBA support], USE_CORBA=$enableval, USE_CORBA=no)
     37if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
     38  USE_CORBA=1
     39  AC_DEFINE(USE_CORBA,[])
     40else
     41  USE_CORBA=0
     42fi
    3843AC_SUBST(USE_CORBA)
    3944
     
    4550dnl Set use of z39.50
    4651dnl
    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)
     52AC_ARG_ENABLE(z3950, [  --enable-z3950          Enable Z39.50 client support], USE_Z3950=$enableval, USE_Z3950=no)
     53if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
     54  USE_Z3950=1
     55  AC_DEFINE(USE_Z3950,[])
     56else
     57  USE_Z3950=0
     58fi
    5059AC_SUBST(USE_Z3950)
    51 fi
    5260
    5361dnl
    5462dnl Set use of yaz - now compiled by default even when z3950 support not required
    5563dnl
    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)
     64AC_ARG_ENABLE(yaz, [  --disable-yaz           Disable YAZ compilation], USE_YAZ=$enableval, USE_YAZ=yes)
     65if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
     66  USE_YAZ=1
     67  AC_DEFINE(USE_YAZ,[])
     68else
     69  USE_YAZ=0
     70fi
    5971AC_SUBST(USE_YAZ)
    60 dnl fi
    6172
    6273dnl
    6374dnl disable compilation of accent folding stuff for mgpp (and one day mg)
    6475dnl
    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)
     76AC_ARG_ENABLE(accentfold, [  --disable-accentfold    Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=$enableval, ENABLE_ACCENTFOLD=yes)
     77if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
     78  ENABLE_ACCENTFOLD=1
     79  AC_DEFINE(ENABLE_ACCENTFOLD,[])
     80else
     81  ENABLE_ACCENTFOLD=0
     82fi
    6783AC_SUBST(ENABLE_ACCENTFOLD)
    6884
     
    7086dnl Set use of SQLite (enabled by default)
    7187dnl
    72 AC_ARG_ENABLE(sqlite, [  --disable-sqlite        Disable SQLite support], USE_SQLITE=0, USE_SQLITE=1)
    73 AC_DEFINE(USE_SQLITE, $USE_SQLITE)
     88AC_ARG_ENABLE(sqlite, [  --disable-sqlite        Disable SQLite support], USE_SQLITE=$enableval, USE_SQLITE=yes)
     89if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
     90  USE_SQLITE=1
     91  AC_DEFINE(USE_SQLITE,[])
     92else
     93  USE_SQLITE=0
     94fi
    7495AC_SUBST(USE_SQLITE)
    7596
Note: See TracChangeset for help on using the changeset viewer.