Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r5973412 r574af7e  
    2828strip=1
    2929ipv6=1
    30 ldap=auto
    3130ssl=auto
    3231
     
    6463
    6564--ipv6=0/1      IPv6 socket support                     $ipv6
    66 
    67 --ldap=0/1/auto LDAP support                            $ldap
    6865
    6966--ssl=...       SSL library to use (gnutls, nss, openssl, bogus, auto)
     
    143140
    144141if [ -n "$CC" ]; then
    145         CC=$CC
     142        echo "CC=$CC" >> Makefile.settings;
    146143elif type gcc > /dev/null 2> /dev/null; then
    147         CC=gcc
     144        echo "CC=gcc" >> Makefile.settings;
    148145elif type cc > /dev/null 2> /dev/null; then
    149         CC=cc
     146        echo "CC=cc" >> Makefile.settings;
    150147else
    151148        echo 'Cannot find a C compiler, aborting.'
    152149        exit 1;
    153150fi
    154 
    155 echo "CC=$CC" >> Makefile.settings;
    156151
    157152if [ -n "$LD" ]; then
     
    206201                ret=0;
    207202        fi;
    208 }
    209 
    210 detect_ldap()
    211 {
    212         TMPFILE=`mktemp`
    213         if $CC -o $TMPFILE -shared -lldap 2>/dev/null >/dev/null; then
    214                 cat<<EOF>>Makefile.settings
    215 EFLAGS+=-lldap
    216 CFLAGS+=
    217 EOF
    218                 ldap=1
    219                 rm -f $TMPFILE
    220                 ret=1
    221         else
    222                 ldap=0
    223                 ret=0
    224         fi
    225203}
    226204
     
    285263fi
    286264
    287 if [ "$ldap" = "auto" ]; then
    288         detect_ldap
    289 fi
    290 
    291 if [ "$ldap" = 0 ]; then
    292         echo "LDAP_OBJ=\# no ldap" >> Makefile.settings
    293         echo "#undef WITH_LDAP" >> config.h
    294 elif [ "$ldap" = 1 ]; then
    295         echo "#define WITH_LDAP 1" >> config.h
    296         echo "LDAP_OBJ=storage_ldap.o" >> Makefile.settings
    297 fi
    298 
    299265if [ "$strip" = 0 ]; then
    300266        echo "STRIP=\# skip strip" >> Makefile.settings;
     
    450416        echo '  Building without IM-protocol support. We wish you a lot of fun...';
    451417fi
    452 
    453 if [ "$ldap" = "0" ]; then
    454         echo "  LDAP storage backend disabled."
    455 else
    456         echo "  LDAP storage backend enabled."
    457 fi
Note: See TracChangeset for help on using the changeset viewer.