Changes in configure [4fca1db:04dc563]
Legend:
- Unmodified
- Added
- Removed
-
configure
r4fca1db r04dc563 27 27 yahoo=1 28 28 twitter=1 29 purple=0 29 30 30 31 debug=0 … … 68 69 --yahoo=0/1 Disable/enable Yahoo part $yahoo 69 70 --twitter=0/1 Disable/enable Twitter part $twitter 71 72 --purple=0/1 Disable/enable libpurple support $purple 70 73 71 74 --debug=0/1 Disable/enable debugging $debug … … 121 124 EOF 122 125 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 123 149 cat<<EOF>config.h 124 150 /* BitlBee settings, generated by configure … … 158 184 159 185 echo CFLAGS=$CFLAGS >> Makefile.settings 160 echo CFLAGS+=-I `pwd` -I`pwd`/lib -I`pwd`/protocols -I. >> Makefile.settings186 echo CFLAGS+=-I${srcdir} -I${srcdir}/lib -I${srcdir}/protocols -I. >> Makefile.settings 161 187 162 188 echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings … … 398 424 fi 399 425 400 STORAGES=" textxml"426 STORAGES="xml" 401 427 402 428 if [ "$ldap" = "auto" ]; then … … 508 534 protoobjs='' 509 535 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 510 568 if [ "$msn" = 0 ]; then 511 569 echo '#undef WITH_MSN' >> config.h
Note: See TracChangeset
for help on using the changeset viewer.