Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    rf1e7407 r1bf9492  
    2020ipcsocket='/var/run/bitlbee.sock'
    2121pcdir='$prefix/lib/pkgconfig'
     22systemlibdirs="/lib /usr/lib /usr/local/lib"
    2223
    2324msn=1
     
    109110PCDIR=$pcdir
    110111
     112TARGET=$target
    111113ARCH=$arch
    112114CPU=$cpu
     
    134136EOF
    135137
     138
     139
    136140if [ -n "$target" ]; then
    137         PKG_CONFIG_PATH=/usr/$target/lib/pkgconfig
     141        PKG_CONFIG_LIBDIR=/usr/$target/lib/pkgconfig
     142        export PKG_CONFIG_LIBDIR
    138143        PATH=/usr/$target/bin:$PATH
    139144        CC=$target-cc
    140145        LD=$target-ld
    141 fi
     146        systemlibdirs="/usr/$target/lib"
     147fi
     148
    142149
    143150if [ "$debug" = "1" ]; then
     
    224231detect_gnutls()
    225232{
    226         if libgnutls-config --version > /dev/null 2> /dev/null; then
     233        if $PKG_CONFIG --exists gnutls; then
     234                cat <<EOF>>Makefile.settings
     235EFLAGS+=`$PKG_CONFIG --libs gnutls`
     236CFLAGS+=`$PKG_CONFIG --cflags gnutls`
     237EOF
     238                ssl=gnutls
     239                ret=1
     240        elif libgnutls-config --version > /dev/null 2> /dev/null; then
    227241                cat <<EOF>>Makefile.settings
    228242EFLAGS+=`libgnutls-config --libs`
     
    278292elif [ "$ssl" = "nss" ]; then
    279293        detect_nss
     294elif [ "$ssl" = "sspi" ]; then
     295        echo
    280296elif [ "$ssl" = "openssl" ]; then
    281297        echo
     
    334350echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings
    335351
    336 for i in /lib /usr/lib /usr/local/lib; do
     352for i in $systemlibdirs; do
    337353        if [ -f $i/libresolv.a ]; then
    338354                echo '#define HAVE_RESOLV_A' >> config.h
     
    386402
    387403if [ "$gcov" = "1" ]; then
    388         echo "CFLAGS+=-ftest-coverage -fprofile-arcs" >> Makefile.settings
    389         echo "EFLAGS+=-lgcov" >> Makefile.settings
     404        echo "CFLAGS+=--coverage" >> Makefile.settings
     405        echo "EFLAGS+=--coverage" >> Makefile.settings
    390406fi
    391407
     
    494510        echo 'Cygwin is not officially supported.'
    495511;;
     512Windows )
     513        echo OUTFILE=bitlbee.exe >> Makefile.settings
     514        echo LFLAGS+=-lwsock32 >> Makefile.settings
     515        echo EFLAGS+=-lsecur32 >> Makefile.settings
     516;;
    496517* )
    497518        echo 'We haven'\''t tested BitlBee on many platforms yet, yours is untested. YMMV.'
Note: See TracChangeset for help on using the changeset viewer.