Changes in / [27ac72d:96ace1b]


Ignore:
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r27ac72d r96ace1b  
    1313headers = account.h bitlbee.h commands.h conf.h config.h crypting.h help.h ini.h ipc.h irc.h log.h nick.h query.h set.h sock.h storage.h url.h user.h protocols/http_client.h protocols/md5.h protocols/nogaim.h protocols/proxy.h protocols/sha.h protocols/ssl_client.h
    1414subdirs = protocols
     15
     16objects += $(LDB_OBJ)
    1517
    1618# Expansion of variables
  • configure

    r27ac72d r96ace1b  
    2828strip=1
    2929ipv6=1
     30ldb=auto
    3031ssl=auto
    3132
     
    6364
    6465--ipv6=0/1      IPv6 socket support                     $ipv6
     66
     67--ldb=0/1/auto  LDB support                             $ldb
    6568
    6669--ssl=...       SSL library to use (gnutls, nss, openssl, bogus, auto)
     
    221224}
    222225
     226detect_ldb()
     227{
     228        if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG ldb; then
     229                cat<<EOF>>Makefile.settings
     230EFLAGS+=`$PKG_CONFIG --libs ldb`
     231CFLAGS+=`$PKG_CONFIG --cflags ldb`
     232EOF
     233                ldb=1
     234                ret=1
     235        else
     236                ret=0
     237        fi
     238}
     239
    223240if [ "$msn" = 1 -o "$jabber" = 1 ]; then
    224241        if [ "$ssl" = "auto" ]; then
     
    281298fi
    282299
     300if [ "$ldb" = "auto" ]; then
     301        detect_ldb
     302fi
     303
     304if [ "$ldb" = 0 ]; then
     305        echo "LDB_OBJ=\# no ldb" >> Makefile.settings
     306        echo "#undef LDB" >> config.h
     307elif [ "$ldb" = 1 ]; then
     308        echo "#define LDB 1" >> config.h
     309        echo "LDB_OBJ=storage_ldb.o" >> Makefile.settings
     310fi
     311
    283312if [ "$strip" = 0 ]; then
    284313        echo "STRIP=\# skip strip" >> Makefile.settings;
     
    431460        echo '  Building without IM-protocol support. We wish you a lot of fun...';
    432461fi
     462
     463if [ "$ldb" = "0" ]; then
     464        echo "  LDB storage backend disabled."
     465else
     466        echo "  LDB storage backend enabled."
     467fi
  • storage.c

    r27ac72d r96ace1b  
    66
    77/* Support for multiple storage backends */
     8
     9/* Copyright (C) 2005 Jelmer Vernooij <jelmer@samba.org> */
    810
    911/*
Note: See TracChangeset for help on using the changeset viewer.