diff options
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 22 | 
1 files changed, 19 insertions, 3 deletions
| @@ -73,6 +73,8 @@ Option		Description				Default  --events=...	Event handler (glib, libevent)		$events  --ssl=...	SSL library to use (gnutls, nss, openssl, bogus, auto)  							$ssl +--arch=...  Override target architecture $arch +  EOF  		exit;  	fi @@ -212,7 +214,14 @@ echo 'EVENT_HANDLER=events_'$events'.o' >> Makefile.settings  detect_gnutls()  { -	if libgnutls-config --version > /dev/null 2> /dev/null; then +	if $PKG_CONFIG --exists gnutls; then +		cat <<EOF>>Makefile.settings +EFLAGS+=`$PKG_CONFIG --libs gnutls` +CFLAGS+=`$PKG_CONFIG --cflags gnutls` +EOF +		ssl=gnutls +		ret=1 +	elif libgnutls-config --version > /dev/null 2> /dev/null; then  		cat <<EOF>>Makefile.settings  EFLAGS+=`libgnutls-config --libs`  CFLAGS+=`libgnutls-config --cflags` @@ -266,6 +275,8 @@ elif [ "$ssl" = "gnutls" ]; then  	detect_gnutls  elif [ "$ssl" = "nss" ]; then  	detect_nss +elif [ "$ssl" = "sspi" ]; then +	echo  elif [ "$ssl" = "openssl" ]; then  	echo  	echo 'No detection code exists for OpenSSL. Make sure that you have a complete' @@ -374,8 +385,8 @@ else  fi  if [ "$gcov" = "1" ]; then -	echo "CFLAGS+=-ftest-coverage -fprofile-arcs" >> Makefile.settings -	echo "EFLAGS+=-lgcov" >> Makefile.settings +	echo "CFLAGS+=--coverage" >> Makefile.settings +	echo "EFLAGS+=--coverage" >> Makefile.settings  fi  if [ "$plugins" = 0 ]; then @@ -482,6 +493,11 @@ AIX )  CYGWIN* )  	echo 'Cygwin is not officially supported.'  ;; +Windows ) +	echo OUTFILE=bitlbee.exe >> Makefile.settings +	echo LFLAGS+=-lwsock32 >> Makefile.settings +	echo EFLAGS+=-lsecur32 >> Makefile.settings +;;  * )  	echo 'We haven'\''t tested BitlBee on many platforms yet, yours is untested. YMMV.'  	echo 'Please report any problems at http://bugs.bitlbee.org/.' | 
