Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r8de63c3 r285b55d  
    2929strip=1
    3030gcov=0
     31plugins=1
    3132ipv6=1
    3233
     
    6970--strip=0/1     Disable/enable binary stripping         $strip
    7071--gcov=0/1      Disable/enable test coverage reporting  $gcov
     72--plugins=0/1   Disable/enable plugins support          $plugins
    7173
    7274--ipv6=0/1      IPv6 socket support                     $ipv6
    73 
    74 --ldap=0/1/auto LDAP support                            $ldap
    7575
    7676--events=...    Event handler (glib, libevent)          $events
     
    140140
    141141if [ "$debug" = "1" ]; then
    142         echo 'CFLAGS=-g' >> Makefile.settings
     142        [ -z "$CFLAGS" ] && CFLAGS=-g
    143143        echo 'DEBUG=1' >> Makefile.settings
    144144        echo '#define DEBUG' >> config.h
    145145else
    146         echo 'CFLAGS=-O3' >> Makefile.settings
    147 fi
    148 
     146        [ -z "$CFLAGS" ] && CFLAGS=-O3
     147fi
     148
     149echo CFLAGS=$CFLAGS >> Makefile.settings
    149150echo CFLAGS+=-I`pwd` -I`pwd`/lib -I`pwd`/protocols -I. >> Makefile.settings
    150151
     
    328329
    329330echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings
     331
     332for i in /lib /usr/lib /usr/local/lib; do
     333        if [ -e $i/libresolv.a ]; then
     334                echo '#define HAVE_RESOLV_A' >> config.h
     335                echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings
     336                break
     337        fi
     338done
    330339
    331340STORAGES="text xml"
     
    377386fi
    378387
     388if [ "$plugins" = 0 ]; then
     389        echo '#undef WITH_PLUGINS' >> config.h
     390else
     391        echo '#define WITH_PLUGINS' >> config.h
     392fi
     393
    379394echo
    380395if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; then
Note: See TracChangeset for help on using the changeset viewer.