Changeset 15814

Show
Ignore:
Timestamp:
30.05.2008 11:05:24 (11 years ago)
Author:
mdewsnip
Message:

(Adding new DB support) Now only configures SQLite if --enable-sqlite has been specified.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/packages/configure

    r15781 r15814  
    2222ENVIRONMENT="" 
    2323 
    24 USE_CORBA=false 
    25 MICO_DIR=default 
     24# SQLite support disabled by default, switch it on with --enable-sqlite 
     25USE_SQLITE=false 
    2626# yaz compilation enabled by default, can switch it off with --disable-yaz 
    2727USE_YAZ=true 
    2828# z3950 server disabled by default, switch it on with --enable-z3950 
    2929USE_Z3950=false 
     30# CORBA support disabled by default, switch it on with --enable-corba 
     31USE_CORBA=false 
     32MICO_DIR=default 
    3033 
    3134# parse any arguments given from toplevel configure 
     
    4649        fi 
    4750        ;; 
     51    --enable-sqlite) 
     52        USE_SQLITE=true 
     53        ;; 
     54    --disable-yaz) 
     55        USE_YAZ=false 
     56        ;; 
    4857    --enable-z3950) 
    4958        USE_Z3950=true 
    50         ;; 
    51     --disable-yaz) 
    52         USE_YAZ=false 
    5359        ;; 
    5460    --enable-corba) 
     
    269275echo "" 
    270276echo "Configuring SQLite" 
    271 echo "" 
    272 cd "$PACKAGES/sqlite" 
    273 gzip -dc sqlite-amalgamation-3.5.9.tar.gz | tar -xf - 
    274 cd "$PACKAGES/sqlite/sqlite-amalgamation-3.5.9" && \ 
    275 ./configure $CACHE_FILE --prefix="$PACKAGES/sqlite" --bindir="$bindir" $HOSTTARGETFLAGS $ENVIRONMENT 
     277if test x$USE_SQLITE = xtrue ;  
     278then 
     279  echo "" 
     280  cd "$PACKAGES/sqlite" 
     281  gzip -dc sqlite-amalgamation-3.5.9.tar.gz | tar -xf - 
     282  cd sqlite-amalgamation-3.5.9 && \ 
     283    ./configure $CACHE_FILE --prefix="$PACKAGES/sqlite" --bindir="$bindir" $HOSTTARGETFLAGS $ENVIRONMENT 
     284else 
     285  echo "SQLite support disabled." 
     286  echo "  add '--enable-sqlite' to the configure command to include SQLite support." 
     287  echo "" 
     288fi