Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    rf665dab re506d6c  
    1515config='/var/lib/bitlbee/'
    1616pidfile='/var/run/bitlbee.pid'
     17ipcsocket='/var/run/bitlbee'
    1718plugindir='$prefix/lib/bitlbee'
     19pcdir='$prefix/lib/pkgconfig'
     20includedir='$prefix/include/bitlbee'
    1821
    1922msn=1
     
    2528strip=1
    2629ipv6=1
    27 ldb=auto
    2830ssl=auto
    2931
     
    5052--pidfile=...                                           $pidfile
    5153--config=...                                            $config
     54--ipcsocket=...                                         $ipcsocket
    5255
    5356--msn=0/1       Disable/enable MSN part                 $msn
     
    6063
    6164--ipv6=0/1      IPv6 socket support                     $ipv6
    62 
    63 --ldb=0/1/auto  LDB support                             $ldb
    6465
    6566--ssl=...       SSL library to use (gnutls, nss, openssl, bogus, auto)
     
    7980config=`eval echo "$config/" | sed 's/\/\{1,\}/\//g'`
    8081plugindir=`eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g'`
    81 pidfile=`eval echo "$pidfile/" | sed 's/\/\{1,\}/\//g'`
     82pidfile=`eval echo "$pidfile" | sed 's/\/\{1,\}/\//g'`
     83ipcsocket=`eval echo "$ipcsocket" | sed 's/\/\{1,\}/\//g'`
     84includedir=`eval echo "$includedir" | sed 's/\/\{1,\}/\//g'`
     85pcdir=`eval echo "$pcdir" | sed 's/\/\{1,\}/\//g'`
    8286
    8387cat<<EOF>Makefile.settings
     
    8993DATADIR=$datadir
    9094PLUGINDIR=$plugindir
    91 PIDFILE=$pidfile
    9295CONFIG=$config
     96IPCSOCKET=$ipcsocket
     97INCLUDEDIR=$includedir
     98PCDIR=$pcdir
    9399
    94100ARCH=$arch
     
    112118#define PLUGINDIR "$plugindir"
    113119#define PIDFILE "$pidfile"
     120#define IPCSOCKET "$ipcsocket"
    114121#define ARCH "$arch"
    115122#define CPU "$cpu"
     
    212219                ret=0;
    213220        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
    228221}
    229222
     
    288281fi
    289282
    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 
    302283if [ "$strip" = 0 ]; then
    303284        echo "STRIP=\# skip strip" >> Makefile.settings;
     
    336317fi
    337318
     319cat <<EOF>bitlbee.pc
     320prefix=$prefix
     321includedir=$includedir
     322
     323Name: bitlbee
     324Description: IRC to IM gateway
     325Requires: glib-2.0
     326Version: $BITLBEE_VERSION
     327Libs:
     328Cflags: -I\${includedir}
     329
     330EOF
     331
    338332protocols=''
    339333protoobjs=''
     
    437431        echo '  Building without IM-protocol support. We wish you a lot of fun...';
    438432fi
    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.