Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r1bf9492 rf1e7407  
    2020ipcsocket='/var/run/bitlbee.sock'
    2121pcdir='$prefix/lib/pkgconfig'
    22 systemlibdirs="/lib /usr/lib /usr/local/lib"
    2322
    2423msn=1
     
    110109PCDIR=$pcdir
    111110
    112 TARGET=$target
    113111ARCH=$arch
    114112CPU=$cpu
     
    136134EOF
    137135
    138 
    139 
    140136if [ -n "$target" ]; then
    141         PKG_CONFIG_LIBDIR=/usr/$target/lib/pkgconfig
    142         export PKG_CONFIG_LIBDIR
     137        PKG_CONFIG_PATH=/usr/$target/lib/pkgconfig
    143138        PATH=/usr/$target/bin:$PATH
    144139        CC=$target-cc
    145140        LD=$target-ld
    146         systemlibdirs="/usr/$target/lib"
    147 fi
    148 
     141fi
    149142
    150143if [ "$debug" = "1" ]; then
     
    231224detect_gnutls()
    232225{
    233         if $PKG_CONFIG --exists gnutls; then
    234                 cat <<EOF>>Makefile.settings
    235 EFLAGS+=`$PKG_CONFIG --libs gnutls`
    236 CFLAGS+=`$PKG_CONFIG --cflags gnutls`
    237 EOF
    238                 ssl=gnutls
    239                 ret=1
    240         elif libgnutls-config --version > /dev/null 2> /dev/null; then
     226        if libgnutls-config --version > /dev/null 2> /dev/null; then
    241227                cat <<EOF>>Makefile.settings
    242228EFLAGS+=`libgnutls-config --libs`
     
    292278elif [ "$ssl" = "nss" ]; then
    293279        detect_nss
    294 elif [ "$ssl" = "sspi" ]; then
    295         echo
    296280elif [ "$ssl" = "openssl" ]; then
    297281        echo
     
    350334echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings
    351335
    352 for i in $systemlibdirs; do
     336for i in /lib /usr/lib /usr/local/lib; do
    353337        if [ -f $i/libresolv.a ]; then
    354338                echo '#define HAVE_RESOLV_A' >> config.h
     
    402386
    403387if [ "$gcov" = "1" ]; then
    404         echo "CFLAGS+=--coverage" >> Makefile.settings
    405         echo "EFLAGS+=--coverage" >> Makefile.settings
     388        echo "CFLAGS+=-ftest-coverage -fprofile-arcs" >> Makefile.settings
     389        echo "EFLAGS+=-lgcov" >> Makefile.settings
    406390fi
    407391
     
    510494        echo 'Cygwin is not officially supported.'
    511495;;
    512 Windows )
    513         echo OUTFILE=bitlbee.exe >> Makefile.settings
    514         echo LFLAGS+=-lwsock32 >> Makefile.settings
    515         echo EFLAGS+=-lsecur32 >> Makefile.settings
    516 ;;
    517496* )
    518497        echo 'We haven'\''t tested BitlBee on many platforms yet, yours is untested. YMMV.'
Note: See TracChangeset for help on using the changeset viewer.