Changes in / [27ac72d:96ace1b]
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r27ac72d r96ace1b 13 13 headers = 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 14 14 subdirs = protocols 15 16 objects += $(LDB_OBJ) 15 17 16 18 # Expansion of variables -
configure
r27ac72d r96ace1b 28 28 strip=1 29 29 ipv6=1 30 ldb=auto 30 31 ssl=auto 31 32 … … 63 64 64 65 --ipv6=0/1 IPv6 socket support $ipv6 66 67 --ldb=0/1/auto LDB support $ldb 65 68 66 69 --ssl=... SSL library to use (gnutls, nss, openssl, bogus, auto) … … 221 224 } 222 225 226 detect_ldb() 227 { 228 if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG ldb; then 229 cat<<EOF>>Makefile.settings 230 EFLAGS+=`$PKG_CONFIG --libs ldb` 231 CFLAGS+=`$PKG_CONFIG --cflags ldb` 232 EOF 233 ldb=1 234 ret=1 235 else 236 ret=0 237 fi 238 } 239 223 240 if [ "$msn" = 1 -o "$jabber" = 1 ]; then 224 241 if [ "$ssl" = "auto" ]; then … … 281 298 fi 282 299 300 if [ "$ldb" = "auto" ]; then 301 detect_ldb 302 fi 303 304 if [ "$ldb" = 0 ]; then 305 echo "LDB_OBJ=\# no ldb" >> Makefile.settings 306 echo "#undef LDB" >> config.h 307 elif [ "$ldb" = 1 ]; then 308 echo "#define LDB 1" >> config.h 309 echo "LDB_OBJ=storage_ldb.o" >> Makefile.settings 310 fi 311 283 312 if [ "$strip" = 0 ]; then 284 313 echo "STRIP=\# skip strip" >> Makefile.settings; … … 431 460 echo ' Building without IM-protocol support. We wish you a lot of fun...'; 432 461 fi 462 463 if [ "$ldb" = "0" ]; then 464 echo " LDB storage backend disabled." 465 else 466 echo " LDB storage backend enabled." 467 fi -
storage.c
r27ac72d r96ace1b 6 6 7 7 /* Support for multiple storage backends */ 8 9 /* Copyright (C) 2005 Jelmer Vernooij <jelmer@samba.org> */ 8 10 9 11 /*
Note: See TracChangeset
for help on using the changeset viewer.