Changes in configure [5973412:574af7e]
Legend:
- Unmodified
- Added
- Removed
-
configure
r5973412 r574af7e 28 28 strip=1 29 29 ipv6=1 30 ldap=auto31 30 ssl=auto 32 31 … … 64 63 65 64 --ipv6=0/1 IPv6 socket support $ipv6 66 67 --ldap=0/1/auto LDAP support $ldap68 65 69 66 --ssl=... SSL library to use (gnutls, nss, openssl, bogus, auto) … … 143 140 144 141 if [ -n "$CC" ]; then 145 CC=$CC142 echo "CC=$CC" >> Makefile.settings; 146 143 elif type gcc > /dev/null 2> /dev/null; then 147 CC=gcc144 echo "CC=gcc" >> Makefile.settings; 148 145 elif type cc > /dev/null 2> /dev/null; then 149 CC=cc146 echo "CC=cc" >> Makefile.settings; 150 147 else 151 148 echo 'Cannot find a C compiler, aborting.' 152 149 exit 1; 153 150 fi 154 155 echo "CC=$CC" >> Makefile.settings;156 151 157 152 if [ -n "$LD" ]; then … … 206 201 ret=0; 207 202 fi; 208 }209 210 detect_ldap()211 {212 TMPFILE=`mktemp`213 if $CC -o $TMPFILE -shared -lldap 2>/dev/null >/dev/null; then214 cat<<EOF>>Makefile.settings215 EFLAGS+=-lldap216 CFLAGS+=217 EOF218 ldap=1219 rm -f $TMPFILE220 ret=1221 else222 ldap=0223 ret=0224 fi225 203 } 226 204 … … 285 263 fi 286 264 287 if [ "$ldap" = "auto" ]; then288 detect_ldap289 fi290 291 if [ "$ldap" = 0 ]; then292 echo "LDAP_OBJ=\# no ldap" >> Makefile.settings293 echo "#undef WITH_LDAP" >> config.h294 elif [ "$ldap" = 1 ]; then295 echo "#define WITH_LDAP 1" >> config.h296 echo "LDAP_OBJ=storage_ldap.o" >> Makefile.settings297 fi298 299 265 if [ "$strip" = 0 ]; then 300 266 echo "STRIP=\# skip strip" >> Makefile.settings; … … 450 416 echo ' Building without IM-protocol support. We wish you a lot of fun...'; 451 417 fi 452 453 if [ "$ldap" = "0" ]; then454 echo " LDAP storage backend disabled."455 else456 echo " LDAP storage backend enabled."457 fi
Note: See TracChangeset
for help on using the changeset viewer.