Changeset 8661caa for configure


Ignore:
Timestamp:
2008-08-04T14:45:24Z (16 years ago)
Author:
ulim <a.sporto+bee@…>
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.
Message:

merged in upstream r410.

Only conflict was the correction of jabber normalization which I had already done.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r4ac647d r8661caa  
    2020ipcsocket='/var/run/bitlbee.sock'
    2121pcdir='$prefix/lib/pkgconfig'
     22systemlibdirs="/lib /usr/lib /usr/local/lib"
    2223
    2324msn=1
     
    7475--ssl=...       SSL library to use (gnutls, nss, openssl, bogus, auto)
    7576                                                        $ssl
     77
     78--target=...    Cross compilation target                same as host
    7679EOF
    7780                exit;
     
    107110PCDIR=$pcdir
    108111
     112TARGET=$target
    109113ARCH=$arch
    110114CPU=$cpu
    111 OUTFILE=bitlbee
    112115
    113116DESTDIR=
     
    132135EOF
    133136
     137
     138
     139if [ -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"
     146fi
     147
     148
    134149if [ "$debug" = "1" ]; then
    135150        [ -z "$CFLAGS" ] && CFLAGS=-g
     
    158173echo "CC=$CC" >> Makefile.settings;
    159174
    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
     175if [ -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
     182fi
     183
     184echo "LD=$LD" >> Makefile.settings
    168185
    169186if [ -z "$PKG_CONFIG" ]; then
     
    213230detect_gnutls()
    214231{
    215         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
    216240                cat <<EOF>>Makefile.settings
    217241EFLAGS+=`libgnutls-config --libs`
     
    267291elif [ "$ssl" = "nss" ]; then
    268292        detect_nss
     293elif [ "$ssl" = "sspi" ]; then
     294        echo
    269295elif [ "$ssl" = "openssl" ]; then
    270296        echo
     
    323349echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings
    324350
    325 for i in /lib /usr/lib /usr/local/lib; do
     351for i in $systemlibdirs; do
    326352        if [ -f $i/libresolv.a ]; then
    327353                echo '#define HAVE_RESOLV_A' >> config.h
     
    375401
    376402if [ "$gcov" = "1" ]; then
    377         echo "CFLAGS+=-ftest-coverage -fprofile-arcs" >> Makefile.settings
    378         echo "EFLAGS+=-lgcov" >> Makefile.settings
     403        echo "CFLAGS+=--coverage" >> Makefile.settings
     404        echo "EFLAGS+=--coverage" >> Makefile.settings
    379405fi
    380406
     
    483509        echo 'Cygwin is not officially supported.'
    484510;;
     511Windows )
     512;;
    485513* )
    486514        echo 'We haven'\''t tested BitlBee on many platforms yet, yours is untested. YMMV.'
     
    489517esac
    490518
     519if [ -n "$target" ]; then
     520        echo "Cross-compiling for: $target"
     521fi
     522
    491523echo
    492524echo 'Configuration done:'
Note: See TracChangeset for help on using the changeset viewer.