- Timestamp:
- 2010-06-07T14:31:07Z (14 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
r0d9d53e r4aa0f6b 27 27 yahoo=1 28 28 twitter=1 29 twitter=1 30 purple=0 29 31 30 32 debug=0 … … 67 69 --oscar=0/1 Disable/enable Oscar part (ICQ, AIM) $oscar 68 70 --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 70 74 71 75 --debug=0/1 Disable/enable debugging $debug … … 121 125 EOF 122 126 127 srcdir="$(dirname $0)" 128 if [ "$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}" 146 else 147 srcdir=$PWD 148 fi 149 123 150 cat<<EOF>config.h 124 151 /* BitlBee settings, generated by configure … … 158 185 159 186 echo CFLAGS=$CFLAGS >> Makefile.settings 160 echo CFLAGS+=-I `pwd` -I`pwd`/lib -I`pwd`/protocols -I. >> Makefile.settings187 echo CFLAGS+=-I${srcdir} -I${srcdir}/lib -I${srcdir}/protocols -I. >> Makefile.settings 161 188 162 189 echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings … … 508 535 protoobjs='' 509 536 537 if [ "$purple" = 0 ]; then 538 echo '#undef WITH_PURPLE' >> config.h 539 else 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 547 EFLAGS += $($PKG_CONFIG purple --libs) 548 PURPLE_CFLAGS += $($PKG_CONFIG purple --cflags) 549 EOF 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 567 fi 568 510 569 if [ "$msn" = 0 ]; then 511 570 echo '#undef WITH_MSN' >> config.h
Note: See TracChangeset
for help on using the changeset viewer.