Changes in configure [e506d6c:f665dab]
Legend:
- Unmodified
- Added
- Removed
-
configure
re506d6c rf665dab 15 15 config='/var/lib/bitlbee/' 16 16 pidfile='/var/run/bitlbee.pid' 17 ipcsocket='/var/run/bitlbee'18 17 plugindir='$prefix/lib/bitlbee' 19 pcdir='$prefix/lib/pkgconfig'20 includedir='$prefix/include/bitlbee'21 18 22 19 msn=1 … … 28 25 strip=1 29 26 ipv6=1 27 ldb=auto 30 28 ssl=auto 31 29 … … 52 50 --pidfile=... $pidfile 53 51 --config=... $config 54 --ipcsocket=... $ipcsocket55 52 56 53 --msn=0/1 Disable/enable MSN part $msn … … 63 60 64 61 --ipv6=0/1 IPv6 socket support $ipv6 62 63 --ldb=0/1/auto LDB support $ldb 65 64 66 65 --ssl=... SSL library to use (gnutls, nss, openssl, bogus, auto) … … 80 79 config=`eval echo "$config/" | sed 's/\/\{1,\}/\//g'` 81 80 plugindir=`eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g'` 82 pidfile=`eval echo "$pidfile" | sed 's/\/\{1,\}/\//g'` 83 ipcsocket=`eval echo "$ipcsocket" | sed 's/\/\{1,\}/\//g'` 84 includedir=`eval echo "$includedir" | sed 's/\/\{1,\}/\//g'` 85 pcdir=`eval echo "$pcdir" | sed 's/\/\{1,\}/\//g'` 81 pidfile=`eval echo "$pidfile/" | sed 's/\/\{1,\}/\//g'` 86 82 87 83 cat<<EOF>Makefile.settings … … 93 89 DATADIR=$datadir 94 90 PLUGINDIR=$plugindir 91 PIDFILE=$pidfile 95 92 CONFIG=$config 96 IPCSOCKET=$ipcsocket97 INCLUDEDIR=$includedir98 PCDIR=$pcdir99 93 100 94 ARCH=$arch … … 118 112 #define PLUGINDIR "$plugindir" 119 113 #define PIDFILE "$pidfile" 120 #define IPCSOCKET "$ipcsocket"121 114 #define ARCH "$arch" 122 115 #define CPU "$cpu" … … 219 212 ret=0; 220 213 fi; 214 } 215 216 detect_ldb() 217 { 218 if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG ldb; then 219 cat<<EOF>>Makefile.settings 220 EFLAGS+=`$PKG_CONFIG --libs ldb` 221 CFLAGS+=`$PKG_CONFIG --cflags ldb` 222 EOF 223 ldb=1 224 ret=1 225 else 226 ret=0 227 fi 221 228 } 222 229 … … 281 288 fi 282 289 290 if [ "$ldb" = "auto" ]; then 291 detect_ldb 292 fi 293 294 if [ "$ldb" = 0 ]; then 295 echo "LDB_OBJ=\# no ldb" >> Makefile.settings 296 echo "#undef LDB" >> config.h 297 elif [ "$ldb" = 1 ]; then 298 echo "#define LDB 1" >> config.h 299 echo "LDB_OBJ=storage_ldb.o" >> Makefile.settings 300 fi 301 283 302 if [ "$strip" = 0 ]; then 284 303 echo "STRIP=\# skip strip" >> Makefile.settings; … … 317 336 fi 318 337 319 cat <<EOF>bitlbee.pc320 prefix=$prefix321 includedir=$includedir322 323 Name: bitlbee324 Description: IRC to IM gateway325 Requires: glib-2.0326 Version: $BITLBEE_VERSION327 Libs:328 Cflags: -I\${includedir}329 330 EOF331 332 338 protocols='' 333 339 protoobjs='' … … 431 437 echo ' Building without IM-protocol support. We wish you a lot of fun...'; 432 438 fi 439 440 if [ "$ldb" = "0" ]; then 441 echo " LDB storage backend disabled." 442 else 443 echo " LDB storage backend enabled." 444 fi
Note: See TracChangeset
for help on using the changeset viewer.