Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r04dc563 r4fca1db  
    2727yahoo=1
    2828twitter=1
    29 purple=0
    3029
    3130debug=0
     
    6968--yahoo=0/1     Disable/enable Yahoo part               $yahoo
    7069--twitter=0/1 Disable/enable Twitter part               $twitter
    71 
    72 --purple=0/1    Disable/enable libpurple support        $purple
    7370
    7471--debug=0/1     Disable/enable debugging                $debug
     
    124121EOF
    125122
    126 srcdir="$(dirname $0)"
    127 if [ "$srcdir" != "." ]; then
    128         echo
    129         echo "configure script run from a different directory. Will create some symlinks..."
    130         if [ ! -e Makefile -o -L Makefile ]; then
    131                 COPYDIRS="doc lib protocols tests utils"
    132                 mkdir -p $(cd "$srcdir"; find $COPYDIRS -type d)
    133                 find . -name Makefile -type l -print0 | xargs -0 rm 2> /dev/null
    134                 dst="$PWD"
    135                 cd "$srcdir"
    136                 for i in $(find . -name Makefile -type f); do
    137                         ln -s "$PWD${i#.}" "$dst/$i";
    138                 done
    139                 cd "$dst"
    140                 rm -rf .bzr
    141         fi
    142        
    143         echo "SRCDIR=$srcdir/" >> Makefile.settings
    144         CFLAGS="$CFLAGS -I${dst}"
    145 else
    146         srcdir=$PWD
    147 fi
    148 
    149123cat<<EOF>config.h
    150124/* BitlBee settings, generated by configure
     
    184158
    185159echo CFLAGS=$CFLAGS >> Makefile.settings
    186 echo CFLAGS+=-I${srcdir} -I${srcdir}/lib -I${srcdir}/protocols -I. >> Makefile.settings
     160echo CFLAGS+=-I`pwd` -I`pwd`/lib -I`pwd`/protocols -I. >> Makefile.settings
    187161
    188162echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings
     
    424398fi
    425399
    426 STORAGES="xml"
     400STORAGES="text xml"
    427401
    428402if [ "$ldap" = "auto" ]; then
     
    534508protoobjs=''
    535509
    536 if [ "$purple" = 0 ]; then
    537         echo '#undef WITH_PURPLE' >> config.h
    538 else
    539         if ! $PKG_CONFIG purple; then
    540                 echo
    541                 echo 'Cannot find libpurple development libraries, aborting. (Install libpurple-dev?)'
    542                 exit 1
    543         fi
    544         echo '#define WITH_PURPLE' >> config.h
    545         cat<<EOF>>Makefile.settings
    546 EFLAGS += $($PKG_CONFIG purple --libs)
    547 PURPLE_CFLAGS += $($PKG_CONFIG purple --cflags)
    548 EOF
    549         protocols=$protocols'purple '
    550         protoobjs=$protoobjs'purple_mod.o '
    551 
    552         # Having both libpurple and native IM modules in one binary may
    553         # do strange things. Let's not do that.
    554         msn=0
    555         jabber=0
    556         oscar=0
    557         yahoo=0
    558         twitter=0
    559        
    560         if [ "$events" = "libevent" ]; then
    561                 echo
    562                 echo 'Warning: Some libpurple modules (including msn-pecan) do their event handling'
    563                 echo 'outside libpurple, talking to GLib directly. At least for now the combination'
    564                 echo 'libpurple + libevent is *not* recommended!'
    565         fi
    566 fi
    567 
    568510if [ "$msn" = 0 ]; then
    569511        echo '#undef WITH_MSN' >> config.h
Note: See TracChangeset for help on using the changeset viewer.