Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    rf1e7407 r6a72a57  
    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
    113 OUTFILE=bitlbee
    114115
    115116DESTDIR=
     
    134135EOF
    135136
     137
     138
    136139if [ -n "$target" ]; then
    137         PKG_CONFIG_PATH=/usr/$target/lib/pkgconfig
     140        PKG_CONFIG_LIBDIR=/usr/$target/lib/pkgconfig
     141        export PKG_CONFIG_LIBDIR
    138142        PATH=/usr/$target/bin:$PATH
    139143        CC=$target-cc
    140144        LD=$target-ld
    141 fi
     145        systemlibdirs="/usr/$target/lib"
     146fi
     147
    142148
    143149if [ "$debug" = "1" ]; then
     
    224230detect_gnutls()
    225231{
    226         if libgnutls-config --version > /dev/null 2> /dev/null; then
     232        if $PKG_CONFIG --exists gnutls; then
     233                cat <<EOF>>Makefile.settings
     234EFLAGS+=`$PKG_CONFIG --libs gnutls`
     235CFLAGS+=`$PKG_CONFIG --cflags gnutls`
     236EOF
     237                ssl=gnutls
     238                ret=1
     239        elif libgnutls-config --version > /dev/null 2> /dev/null; then
    227240                cat <<EOF>>Makefile.settings
    228241EFLAGS+=`libgnutls-config --libs`
     
    278291elif [ "$ssl" = "nss" ]; then
    279292        detect_nss
     293elif [ "$ssl" = "sspi" ]; then
     294        echo
    280295elif [ "$ssl" = "openssl" ]; then
    281296        echo
     
    334349echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings
    335350
    336 for i in /lib /usr/lib /usr/local/lib; do
     351for i in $systemlibdirs; do
    337352        if [ -f $i/libresolv.a ]; then
    338353                echo '#define HAVE_RESOLV_A' >> config.h
     
    386401
    387402if [ "$gcov" = "1" ]; then
    388         echo "CFLAGS+=-ftest-coverage -fprofile-arcs" >> Makefile.settings
    389         echo "EFLAGS+=-lgcov" >> Makefile.settings
     403        echo "CFLAGS+=--coverage" >> Makefile.settings
     404        echo "EFLAGS+=--coverage" >> Makefile.settings
    390405fi
    391406
     
    494509        echo 'Cygwin is not officially supported.'
    495510;;
     511Windows )
     512;;
    496513* )
    497514        echo 'We haven'\''t tested BitlBee on many platforms yet, yours is untested. YMMV.'
Note: See TracChangeset for help on using the changeset viewer.