diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-24 23:16:18 +0200 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-24 23:16:18 +0200 | 
| commit | 2945c6ff5d1848f6d8e51a0d804a2d769e6894a7 (patch) | |
| tree | 595788105189dab5270fe2b7dc4e9baffa487aed /configure | |
| parent | ef14a83adbb9036c0006ad460c5e11882a3d7e13 (diff) | |
| parent | 593971d9ff9f246cec5af5583f29e45fee62edfe (diff) | |
Merge ui-fix (which includes killerbee (i.e. file transfers and libpurple
support)). ui-fix rewrites the complete IRC core, fixing many things that
were broken/hacky/limited so far.
The list is too long to include here, but http://wiki.bitlbee.org/UiFix
has a summary, as does doc/CHANGES and of course the full revision history.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 65 | 
1 files changed, 62 insertions, 3 deletions
| @@ -26,6 +26,8 @@ jabber=1  oscar=1  yahoo=1  twitter=1 +twitter=1 +purple=0  debug=0  strip=1 @@ -66,7 +68,9 @@ Option		Description				Default  --jabber=0/1	Disable/enable Jabber part		$jabber  --oscar=0/1	Disable/enable Oscar part (ICQ, AIM)	$oscar  --yahoo=0/1	Disable/enable Yahoo part		$yahoo ---twitter=0/1 Disable/enable Twitter part		$twitter +--twitter=0/1	Disable/enable Twitter part		$twitter + +--purple=0/1	Disable/enable libpurple support	$purple  --debug=0/1	Disable/enable debugging		$debug  --strip=0/1	Disable/enable binary stripping		$strip @@ -120,6 +124,29 @@ LFLAGS=  EFLAGS=  EOF +srcdir="$(dirname $0)" +if [ "$srcdir" != "." ]; then +	echo +	echo "configure script run from a different directory. Will create some symlinks..." +	if [ ! -e Makefile -o -L Makefile ]; then +		COPYDIRS="doc lib protocols tests utils" +		mkdir -p $(cd "$srcdir"; find $COPYDIRS -type d) +		find . -name Makefile -type l -print0 | xargs -0 rm 2> /dev/null +		dst="$PWD" +		cd "$srcdir" +		for i in $(find . -name Makefile -type f); do +			ln -s "$PWD${i#.}" "$dst/$i"; +		done +		cd "$dst" +		rm -rf .bzr +	fi +	 +	echo "SRCDIR=$srcdir/" >> Makefile.settings +	CFLAGS="$CFLAGS -I${dst}" +else +	srcdir=$PWD +fi +  cat<<EOF>config.h  /* BitlBee settings, generated by configure @@ -157,7 +184,7 @@ else  fi  echo CFLAGS=$CFLAGS >> Makefile.settings -echo CFLAGS+=-I`pwd` -I`pwd`/lib -I`pwd`/protocols -I. >> Makefile.settings +echo CFLAGS+=-I${srcdir} -I${srcdir}/lib -I${srcdir}/protocols -I. >> Makefile.settings  echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings @@ -397,7 +424,7 @@ if detect_resolv_dynamic || detect_resolv_static; then  	echo '#define HAVE_RESOLV_A' >> config.h  fi -STORAGES="text xml" +STORAGES="xml"  if [ "$ldap" = "auto" ]; then  	detect_ldap @@ -507,6 +534,38 @@ EOF  protocols=''  protoobjs='' +if [ "$purple" = 0 ]; then +	echo '#undef WITH_PURPLE' >> config.h +else +	if ! $PKG_CONFIG purple; then +		echo +		echo 'Cannot find libpurple development libraries, aborting. (Install libpurple-dev?)' +		exit 1 +	fi +	echo '#define WITH_PURPLE' >> config.h +	cat<<EOF>>Makefile.settings +EFLAGS += $($PKG_CONFIG purple --libs) +PURPLE_CFLAGS += $($PKG_CONFIG purple --cflags) +EOF +	protocols=$protocols'purple ' +	protoobjs=$protoobjs'purple_mod.o ' + +	# Having both libpurple and native IM modules in one binary may +	# do strange things. Let's not do that. +	msn=0 +	jabber=0 +	oscar=0 +	yahoo=0 +	twitter=0 +	 +	if [ "$events" = "libevent" ]; then +		echo +		echo 'Warning: Some libpurple modules (including msn-pecan) do their event handling' +		echo 'outside libpurple, talking to GLib directly. At least for now the combination' +		echo 'libpurple + libevent is *not* recommended!' +	fi +fi +  if [ "$msn" = 0 ]; then  	echo '#undef WITH_MSN' >> config.h  else | 
