diff options
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 18 | 
1 files changed, 16 insertions, 2 deletions
| @@ -19,6 +19,7 @@ libevent='/usr/'  pidfile='/var/run/bitlbee.pid'  ipcsocket='/var/run/bitlbee.sock'  pcdir='$prefix/lib/pkgconfig' +systemlibdirs="/lib /usr/lib /usr/local/lib"  msn=1  jabber=1 @@ -108,6 +109,7 @@ CONFIG=$config  INCLUDEDIR=$includedir  PCDIR=$pcdir +TARGET=$target  ARCH=$arch  CPU=$cpu  OUTFILE=bitlbee @@ -133,13 +135,18 @@ cat<<EOF>config.h  #define CPU "$cpu"  EOF + +  if [ -n "$target" ]; then -	PKG_CONFIG_PATH=/usr/$target/lib/pkgconfig +	PKG_CONFIG_LIBDIR=/usr/$target/lib/pkgconfig +	export PKG_CONFIG_LIBDIR  	PATH=/usr/$target/bin:$PATH  	CC=$target-cc  	LD=$target-ld +	systemlibdirs="/usr/$target/lib"  fi +  if [ "$debug" = "1" ]; then  	[ -z "$CFLAGS" ] && CFLAGS=-g  	echo 'DEBUG=1' >> Makefile.settings @@ -284,6 +291,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' @@ -340,7 +349,7 @@ fi;  echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings -for i in /lib /usr/lib /usr/local/lib; do +for i in $systemlibdirs; do  	if [ -f $i/libresolv.a ]; then  		echo '#define HAVE_RESOLV_A' >> config.h  		echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings @@ -500,6 +509,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/.' | 
