- Timestamp:
- 2008-07-16T23:22:52Z (16 years ago)
- Branches:
- master
- Children:
- 9b55485
- Parents:
- 9730d72 (diff), 6a78c0e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
r9730d72 r6738a67 20 20 ipcsocket='/var/run/bitlbee.sock' 21 21 pcdir='$prefix/lib/pkgconfig' 22 systemlibdirs="/lib /usr/lib /usr/local/lib" 22 23 23 24 msn=1 … … 76 77 --ssl=... SSL library to use (gnutls, nss, openssl, bogus, auto) 77 78 $ssl 79 80 --target=... Cross compilation target same as host 78 81 EOF 79 82 exit; … … 109 112 PCDIR=$pcdir 110 113 114 TARGET=$target 111 115 ARCH=$arch 112 116 CPU=$cpu 113 OUTFILE=bitlbee114 117 115 118 DESTDIR= … … 134 137 EOF 135 138 139 140 141 if [ -n "$target" ]; then 142 PKG_CONFIG_LIBDIR=/usr/$target/lib/pkgconfig 143 export PKG_CONFIG_LIBDIR 144 PATH=/usr/$target/bin:$PATH 145 CC=$target-cc 146 LD=$target-ld 147 systemlibdirs="/usr/$target/lib" 148 fi 149 150 136 151 if [ "$debug" = "1" ]; then 137 152 [ -z "$CFLAGS" ] && CFLAGS=-g … … 160 175 echo "CC=$CC" >> Makefile.settings; 161 176 162 if [ -n "$LD" ]; then 163 echo "LD=$LD" >> Makefile.settings; 164 elif type ld > /dev/null 2> /dev/null; then 165 echo "LD=ld" >> Makefile.settings; 166 else 167 echo 'Cannot find ld, aborting.' 168 exit 1; 169 fi 177 if [ -z "$LD" ]; then 178 if type ld > /dev/null 2> /dev/null; then 179 LD=ld 180 else 181 echo 'Cannot find ld, aborting.' 182 exit 1; 183 fi 184 fi 185 186 echo "LD=$LD" >> Makefile.settings 170 187 171 188 if [ -z "$PKG_CONFIG" ]; then … … 215 232 detect_gnutls() 216 233 { 217 if libgnutls-config --version > /dev/null 2> /dev/null; then 234 if $PKG_CONFIG --exists gnutls; then 235 cat <<EOF>>Makefile.settings 236 EFLAGS+=`$PKG_CONFIG --libs gnutls` 237 CFLAGS+=`$PKG_CONFIG --cflags gnutls` 238 EOF 239 ssl=gnutls 240 ret=1 241 elif libgnutls-config --version > /dev/null 2> /dev/null; then 218 242 cat <<EOF>>Makefile.settings 219 243 EFLAGS+=`libgnutls-config --libs` … … 269 293 elif [ "$ssl" = "nss" ]; then 270 294 detect_nss 295 elif [ "$ssl" = "sspi" ]; then 296 echo 271 297 elif [ "$ssl" = "openssl" ]; then 272 298 echo … … 325 351 echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings 326 352 327 for i in /lib /usr/lib /usr/local/lib; do353 for i in $systemlibdirs; do 328 354 if [ -f $i/libresolv.a ]; then 329 355 echo '#define HAVE_RESOLV_A' >> config.h … … 377 403 378 404 if [ "$gcov" = "1" ]; then 379 echo "CFLAGS+=- ftest-coverage -fprofile-arcs" >> Makefile.settings380 echo "EFLAGS+=- lgcov" >> Makefile.settings405 echo "CFLAGS+=--coverage" >> Makefile.settings 406 echo "EFLAGS+=--coverage" >> Makefile.settings 381 407 fi 382 408 … … 387 413 fi 388 414 415 otrprefix="" 416 for i in / /usr /usr/local; do 417 if [ -f ${i}/lib/libotr.a ]; then 418 otrprefix=${i} 419 break 420 fi 421 done 389 422 if [ "$otr" = "auto" ]; then 390 for i in /lib /usr/lib /usr/local/lib; do 391 if [ -f $i/libotr.a ]; then 392 otr=1 393 break 394 fi 395 done 396 fi 397 if [ "$otr" = 0 ]; then 423 if [ -n "$otrprefix" ]; then 424 otr=1 425 else 426 otr=0 427 fi 428 fi 429 if [ "$otr" = 1 ]; then 430 echo '#define WITH_OTR' >> config.h 431 echo "EFLAGS+=-L${otrprefix}/lib -lotr" >> Makefile.settings 432 echo "CFLAGS+=-I${otrprefix}/include" >> Makefile.settings 433 else 398 434 echo '#undef WITH_OTR' >> config.h 399 else400 echo '#define WITH_OTR' >> config.h401 echo "EFLAGS+=-lotr" >> Makefile.settings402 435 fi 403 436 … … 500 533 echo 'Cygwin is not officially supported.' 501 534 ;; 535 Windows ) 536 ;; 502 537 * ) 503 538 echo 'We haven'\''t tested BitlBee on many platforms yet, yours is untested. YMMV.' … … 506 541 esac 507 542 543 if [ -n "$target" ]; then 544 echo "Cross-compiling for: $target" 545 fi 546 508 547 echo 509 548 echo 'Configuration done:'
Note: See TracChangeset
for help on using the changeset viewer.