- Timestamp:
- 2008-08-04T14:45:24Z (16 years ago)
- Branches:
- master
- Children:
- 87f525e
- Parents:
- 4ac647d (diff), 718e05f (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
r4ac647d r8661caa 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 … … 74 75 --ssl=... SSL library to use (gnutls, nss, openssl, bogus, auto) 75 76 $ssl 77 78 --target=... Cross compilation target same as host 76 79 EOF 77 80 exit; … … 107 110 PCDIR=$pcdir 108 111 112 TARGET=$target 109 113 ARCH=$arch 110 114 CPU=$cpu 111 OUTFILE=bitlbee112 115 113 116 DESTDIR= … … 132 135 EOF 133 136 137 138 139 if [ -n "$target" ]; then 140 PKG_CONFIG_LIBDIR=/usr/$target/lib/pkgconfig 141 export PKG_CONFIG_LIBDIR 142 PATH=/usr/$target/bin:$PATH 143 CC=$target-cc 144 LD=$target-ld 145 systemlibdirs="/usr/$target/lib" 146 fi 147 148 134 149 if [ "$debug" = "1" ]; then 135 150 [ -z "$CFLAGS" ] && CFLAGS=-g … … 158 173 echo "CC=$CC" >> Makefile.settings; 159 174 160 if [ -n "$LD" ]; then 161 echo "LD=$LD" >> Makefile.settings; 162 elif type ld > /dev/null 2> /dev/null; then 163 echo "LD=ld" >> Makefile.settings; 164 else 165 echo 'Cannot find ld, aborting.' 166 exit 1; 167 fi 175 if [ -z "$LD" ]; then 176 if type ld > /dev/null 2> /dev/null; then 177 LD=ld 178 else 179 echo 'Cannot find ld, aborting.' 180 exit 1; 181 fi 182 fi 183 184 echo "LD=$LD" >> Makefile.settings 168 185 169 186 if [ -z "$PKG_CONFIG" ]; then … … 213 230 detect_gnutls() 214 231 { 215 if libgnutls-config --version > /dev/null 2> /dev/null; then 232 if $PKG_CONFIG --exists gnutls; then 233 cat <<EOF>>Makefile.settings 234 EFLAGS+=`$PKG_CONFIG --libs gnutls` 235 CFLAGS+=`$PKG_CONFIG --cflags gnutls` 236 EOF 237 ssl=gnutls 238 ret=1 239 elif libgnutls-config --version > /dev/null 2> /dev/null; then 216 240 cat <<EOF>>Makefile.settings 217 241 EFLAGS+=`libgnutls-config --libs` … … 267 291 elif [ "$ssl" = "nss" ]; then 268 292 detect_nss 293 elif [ "$ssl" = "sspi" ]; then 294 echo 269 295 elif [ "$ssl" = "openssl" ]; then 270 296 echo … … 323 349 echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings 324 350 325 for i in /lib /usr/lib /usr/local/lib; do351 for i in $systemlibdirs; do 326 352 if [ -f $i/libresolv.a ]; then 327 353 echo '#define HAVE_RESOLV_A' >> config.h … … 375 401 376 402 if [ "$gcov" = "1" ]; then 377 echo "CFLAGS+=- ftest-coverage -fprofile-arcs" >> Makefile.settings378 echo "EFLAGS+=- lgcov" >> Makefile.settings403 echo "CFLAGS+=--coverage" >> Makefile.settings 404 echo "EFLAGS+=--coverage" >> Makefile.settings 379 405 fi 380 406 … … 483 509 echo 'Cygwin is not officially supported.' 484 510 ;; 511 Windows ) 512 ;; 485 513 * ) 486 514 echo 'We haven'\''t tested BitlBee on many platforms yet, yours is untested. YMMV.' … … 489 517 esac 490 518 519 if [ -n "$target" ]; then 520 echo "Cross-compiling for: $target" 521 fi 522 491 523 echo 492 524 echo 'Configuration done:'
Note: See TracChangeset
for help on using the changeset viewer.