Changeset 21417


Ignore:
Timestamp:
01/04/10 23:36:22 (11 years ago)
Author:
davidb
Message:

Correction to how --enable-jdbm flag is implemented

Location:
main/trunk/greenstone2
Files:
2 edited

Legend:

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

    r21409 r21417  
    7272dnl Set use of JDBM (enabled by default)
    7373dnl
    74 AC_ARG_ENABLE(jdbm, [  --disable-jdbm        Disable JDBM support], USE_JDBM=0, USE_JDBM=1)
    75 AC_DEFINE(USE_JDBM, $USE_JDBM)
    76 AC_SUBST(USE_JDBM)
     74AC_ARG_ENABLE(jdbm, [  --disable-jdbm        Disable JDBM compilation], ENABLE_JDBM=$enableval, ENABLE_JDBM=yes)
     75if test $ENABLE_JDBM = "yes" -o $ENABLE_JDBM = "1" ; then
     76  ENABLE_JDBM=1
     77  AC_DEFINE(ENABLE_JDBM,[])
     78else
     79  ENABLE_JDBM=0
     80fi
     81AC_SUBST(ENABLE_JDBM)
    7782
    7883dnl
  • main/trunk/greenstone2/configure.in

    r21409 r21417  
    7070dnl Set use of JDBM (enabled by default)
    7171dnl
    72 AC_ARG_ENABLE(jdbm, [  --disable-jdbm        Disable JDBM support], USE_JDBM=0, USE_JDBM=1)
    73 AC_DEFINE(USE_JDBM, $USE_JDBM)
    74 AC_SUBST(USE_JDBM)
     72dnl
     73dnl Set use of JDBM (enabled by default)
     74dnl
     75AC_ARG_ENABLE(jdbm, [  --disable-jdbm        Disable JDBM compilation], ENABLE_JDBM=$enableval, ENABLE_JDBM=yes)
     76if test $ENABLE_JDBM = "yes" -o $ENABLE_JDBM = "1" ; then
     77  ENABLE_JDBM=1
     78  AC_DEFINE(ENABLE_JDBM,[])
     79else
     80  ENABLE_JDBM=0
     81fi
     82AC_SUBST(ENABLE_JDBM)
    7583
    7684dnl
Note: See TracChangeset for help on using the changeset viewer.