Changeset 4aa0f6b for configure


Ignore:
Timestamp:
2010-06-07T14:31:07Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
56699f0
Parents:
0d9d53e (diff), 1fdb0a4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merging killerbee stuff, bringing all the bleeding-edge stuff together.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r0d9d53e r4aa0f6b  
    2727yahoo=1
    2828twitter=1
     29twitter=1
     30purple=0
    2931
    3032debug=0
     
    6769--oscar=0/1     Disable/enable Oscar part (ICQ, AIM)    $oscar
    6870--yahoo=0/1     Disable/enable Yahoo part               $yahoo
    69 --twitter=0/1 Disable/enable Twitter part               $twitter
     71--twitter=0/1   Disable/enable Twitter part             $twitter
     72
     73--purple=0/1    Disable/enable libpurple support        $purple
    7074
    7175--debug=0/1     Disable/enable debugging                $debug
     
    121125EOF
    122126
     127srcdir="$(dirname $0)"
     128if [ "$srcdir" != "." ]; then
     129        echo
     130        echo "configure script run from a different directory. Will create some symlinks..."
     131        if [ ! -e Makefile -o -L Makefile ]; then
     132                COPYDIRS="doc lib protocols tests utils"
     133                mkdir -p $(cd "$srcdir"; find $COPYDIRS -type d)
     134                find . -name Makefile -type l -print0 | xargs -0 rm 2> /dev/null
     135                dst="$PWD"
     136                cd "$srcdir"
     137                for i in $(find . -name Makefile -type f); do
     138                        ln -s "$PWD${i#.}" "$dst/$i";
     139                done
     140                cd "$dst"
     141                rm -rf .bzr
     142        fi
     143       
     144        echo "SRCDIR=$srcdir/" >> Makefile.settings
     145        CFLAGS="$CFLAGS -I${dst}"
     146else
     147        srcdir=$PWD
     148fi
     149
    123150cat<<EOF>config.h
    124151/* BitlBee settings, generated by configure
     
    158185
    159186echo CFLAGS=$CFLAGS >> Makefile.settings
    160 echo CFLAGS+=-I`pwd` -I`pwd`/lib -I`pwd`/protocols -I. >> Makefile.settings
     187echo CFLAGS+=-I${srcdir} -I${srcdir}/lib -I${srcdir}/protocols -I. >> Makefile.settings
    161188
    162189echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings
     
    508535protoobjs=''
    509536
     537if [ "$purple" = 0 ]; then
     538        echo '#undef WITH_PURPLE' >> config.h
     539else
     540        if ! $PKG_CONFIG purple; then
     541                echo
     542                echo 'Cannot find libpurple development libraries, aborting. (Install libpurple-dev?)'
     543                exit 1
     544        fi
     545        echo '#define WITH_PURPLE' >> config.h
     546        cat<<EOF>>Makefile.settings
     547EFLAGS += $($PKG_CONFIG purple --libs)
     548PURPLE_CFLAGS += $($PKG_CONFIG purple --cflags)
     549EOF
     550        protocols=$protocols'purple '
     551        protoobjs=$protoobjs'purple_mod.o '
     552
     553        # Having both libpurple and native IM modules in one binary may
     554        # do strange things. Let's not do that.
     555        msn=0
     556        jabber=0
     557        oscar=0
     558        yahoo=0
     559        twitter=0
     560       
     561        if [ "$events" = "libevent" ]; then
     562                echo
     563                echo 'Warning: Some libpurple modules (including msn-pecan) do their event handling'
     564                echo 'outside libpurple, talking to GLib directly. At least for now the combination'
     565                echo 'libpurple + libevent is *not* recommended!'
     566        fi
     567fi
     568
    510569if [ "$msn" = 0 ]; then
    511570        echo '#undef WITH_MSN' >> config.h
Note: See TracChangeset for help on using the changeset viewer.