Changeset 12494


Ignore:
Timestamp:
2006-08-22T14:58:18+12:00 (18 years ago)
Author:
kjdon
Message:

d2m under the control of USE_Z3950 (set by --enable-z3950), but yaz compilation now under the control of USE_YAZ (set by --disable-yaz)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/packages/configure

    r12007 r12494  
    1919USE_CORBA=false
    2020MICO_DIR=default
    21 
     21# yaz compilation enabled by default, can switch it off with --disable-yaz
     22USE_YAZ=true
     23# z3950 server disabled by default, switch it on with --enable-z3950
     24USE_Z3950=false
    2225# parse any arguments given from toplevel configure
    2326while test $# -ne 0; do
     
    3942    --enable-z3950)
    4043        USE_Z3950=true
     44        ;;
     45    --disable-yaz)
     46        USE_YAZ=false
    4147        ;;
    4248    --enable-corba)
     
    160166
    161167
    162 # YAZ Z39.50 toolkit
    163 echo ""
    164 echo "Configuring YAZ"
     168# D2M stuff needed for z3950server
     169echo ""
     170echo "Configuring D2M"
    165171if test x$USE_Z3950 = xtrue ;
    166172then
     173  USE_YAZ=true
     174  echo ""
     175  cd "$PACKAGES/d2m"
     176  ./configure $CACHE_FILE --prefix="$PACKAGES/d2m" $HOSTTARGETFLAGS
     177else
     178  echo "Z39.50 support disabled - D2M library not required."
     179  echo "  add '--enable-z3950' to the configure command to include z39.50 support."
     180  echo ""
     181fi
     182   
     183# YAZ Z39.50 toolkit
     184echo ""
     185echo "Configuring YAZ"
     186if test x$USE_YAZ = xtrue ;
     187then
     188  echo "YAZ library support enabled"
     189  echo "add --disable-yaz to the configure command to disable this"
    167190  echo ""
    168191  cd "$PACKAGES/yaz"
    169192  gzip -dc yaz-2.1.4.tar.gz | tar -xf -
    170193  cd yaz-2.1.4 && \
    171     ./configure $CACHE_FILE --prefix="$PACKAGES/yaz" --with-xml2=no --with-iconv=no $HOSTTARGETFLAGS
    172   cd "$PACKAGES/d2m"
    173   ./configure $CACHE_FILE --prefix="$PACKAGES/d2m" $HOSTTARGETFLAGS
     194    ./configure $CACHE_FILE --prefix="$PACKAGES/yaz"  $HOSTTARGETFLAGS
    174195else
    175   echo "Z39.50 support disabled - YAZ library not required."
    176   echo "  add '--enable-z3950' to the configure command to include z39.50 support."
     196  echo "YAZ support disabled"
    177197  echo ""
    178198fi
Note: See TracChangeset for help on using the changeset viewer.