Changes in configure [04dc563:4fca1db]
Legend:
- Unmodified
- Added
- Removed
-
configure
r04dc563 r4fca1db 27 27 yahoo=1 28 28 twitter=1 29 purple=030 29 31 30 debug=0 … … 69 68 --yahoo=0/1 Disable/enable Yahoo part $yahoo 70 69 --twitter=0/1 Disable/enable Twitter part $twitter 71 72 --purple=0/1 Disable/enable libpurple support $purple73 70 74 71 --debug=0/1 Disable/enable debugging $debug … … 124 121 EOF 125 122 126 srcdir="$(dirname $0)"127 if [ "$srcdir" != "." ]; then128 echo129 echo "configure script run from a different directory. Will create some symlinks..."130 if [ ! -e Makefile -o -L Makefile ]; then131 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/null134 dst="$PWD"135 cd "$srcdir"136 for i in $(find . -name Makefile -type f); do137 ln -s "$PWD${i#.}" "$dst/$i";138 done139 cd "$dst"140 rm -rf .bzr141 fi142 143 echo "SRCDIR=$srcdir/" >> Makefile.settings144 CFLAGS="$CFLAGS -I${dst}"145 else146 srcdir=$PWD147 fi148 149 123 cat<<EOF>config.h 150 124 /* BitlBee settings, generated by configure … … 184 158 185 159 echo CFLAGS=$CFLAGS >> Makefile.settings 186 echo CFLAGS+=-I ${srcdir} -I${srcdir}/lib -I${srcdir}/protocols -I. >> Makefile.settings160 echo CFLAGS+=-I`pwd` -I`pwd`/lib -I`pwd`/protocols -I. >> Makefile.settings 187 161 188 162 echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings … … 424 398 fi 425 399 426 STORAGES=" xml"400 STORAGES="text xml" 427 401 428 402 if [ "$ldap" = "auto" ]; then … … 534 508 protoobjs='' 535 509 536 if [ "$purple" = 0 ]; then537 echo '#undef WITH_PURPLE' >> config.h538 else539 if ! $PKG_CONFIG purple; then540 echo541 echo 'Cannot find libpurple development libraries, aborting. (Install libpurple-dev?)'542 exit 1543 fi544 echo '#define WITH_PURPLE' >> config.h545 cat<<EOF>>Makefile.settings546 EFLAGS += $($PKG_CONFIG purple --libs)547 PURPLE_CFLAGS += $($PKG_CONFIG purple --cflags)548 EOF549 protocols=$protocols'purple '550 protoobjs=$protoobjs'purple_mod.o '551 552 # Having both libpurple and native IM modules in one binary may553 # do strange things. Let's not do that.554 msn=0555 jabber=0556 oscar=0557 yahoo=0558 twitter=0559 560 if [ "$events" = "libevent" ]; then561 echo562 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 fi566 fi567 568 510 if [ "$msn" = 0 ]; then 569 511 echo '#undef WITH_MSN' >> config.h
Note: See TracChangeset
for help on using the changeset viewer.