Changeset f665dab for configure


Ignore:
Timestamp:
2006-02-12T08:02:03Z (19 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
96ace1b
Parents:
5ebe625
Message:

Initial work on new LDB-based storage backend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r5ebe625 rf665dab  
    2525strip=1
    2626ipv6=1
     27ldb=auto
    2728ssl=auto
    2829
     
    5960
    6061--ipv6=0/1      IPv6 socket support                     $ipv6
     62
     63--ldb=0/1/auto  LDB support                             $ldb
    6164
    6265--ssl=...       SSL library to use (gnutls, nss, openssl, bogus, auto)
     
    209212                ret=0;
    210213        fi;
     214}
     215
     216detect_ldb()
     217{
     218        if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG ldb; then
     219                cat<<EOF>>Makefile.settings
     220EFLAGS+=`$PKG_CONFIG --libs ldb`
     221CFLAGS+=`$PKG_CONFIG --cflags ldb`
     222EOF
     223                ldb=1
     224                ret=1
     225        else
     226                ret=0
     227        fi
    211228}
    212229
     
    271288fi
    272289
     290if [ "$ldb" = "auto" ]; then
     291        detect_ldb
     292fi
     293
     294if [ "$ldb" = 0 ]; then
     295        echo "LDB_OBJ=\# no ldb" >> Makefile.settings
     296        echo "#undef LDB" >> config.h
     297elif [ "$ldb" = 1 ]; then
     298        echo "#define LDB 1" >> config.h
     299        echo "LDB_OBJ=storage_ldb.o" >> Makefile.settings
     300fi
     301
    273302if [ "$strip" = 0 ]; then
    274303        echo "STRIP=\# skip strip" >> Makefile.settings;
     
    408437        echo '  Building without IM-protocol support. We wish you a lot of fun...';
    409438fi
     439
     440if [ "$ldb" = "0" ]; then
     441        echo "  LDB storage backend disabled."
     442else
     443        echo "  LDB storage backend enabled."
     444fi
Note: See TracChangeset for help on using the changeset viewer.