Ignore:
Timestamp:
2010-01-04T23:36:22+13:00 (14 years ago)
Author:
davidb
Message:

Correction to how --enable-jdbm flag is implemented

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.