diff options
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 35 | 
1 files changed, 35 insertions, 0 deletions
| @@ -26,6 +26,7 @@ jabber=1  oscar=1  yahoo=1  twitter=1 +purple=1  debug=0  strip=1 @@ -68,6 +69,8 @@ Option		Description				Default  --yahoo=0/1	Disable/enable Yahoo part		$yahoo  --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  --gcov=0/1	Disable/enable test coverage reporting	$gcov @@ -507,6 +510,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 | 
