- Timestamp:
- 2006-06-07T13:36:19Z (18 years ago)
- Branches:
- master
- Children:
- c121f89
- Parents:
- a312b6b (diff), 0025b51 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
ra312b6b r85e9644 31 31 32 32 events=glib 33 ldap=auto 33 34 ssl=auto 34 35 … … 66 67 67 68 --ipv6=0/1 IPv6 socket support $ipv6 69 70 --ldap=0/1/auto LDAP support $ldap 68 71 69 72 --events=... Event handler (glib, libevent) $events … … 146 149 147 150 if [ -n "$CC" ]; then 148 echo "CC=$CC" >> Makefile.settings;151 CC=$CC 149 152 elif type gcc > /dev/null 2> /dev/null; then 150 echo "CC=gcc" >> Makefile.settings;153 CC=gcc 151 154 elif type cc > /dev/null 2> /dev/null; then 152 echo "CC=cc" >> Makefile.settings;155 CC=cc 153 156 else 154 157 echo 'Cannot find a C compiler, aborting.' 155 158 exit 1; 156 159 fi 160 161 echo "CC=$CC" >> Makefile.settings; 157 162 158 163 if [ -n "$LD" ]; then … … 230 235 ret=0; 231 236 fi; 237 } 238 239 detect_ldap() 240 { 241 TMPFILE=`mktemp` 242 if $CC -o $TMPFILE -shared -lldap 2>/dev/null >/dev/null; then 243 cat<<EOF>>Makefile.settings 244 EFLAGS+=-lldap 245 CFLAGS+= 246 EOF 247 ldap=1 248 rm -f $TMPFILE 249 ret=1 250 else 251 ldap=0 252 ret=0 253 fi 232 254 } 233 255 … … 292 314 fi 293 315 316 if [ "$ldap" = "auto" ]; then 317 detect_ldap 318 fi 319 320 if [ "$ldap" = 0 ]; then 321 echo "LDAP_OBJ=\# no ldap" >> Makefile.settings 322 echo "#undef WITH_LDAP" >> config.h 323 elif [ "$ldap" = 1 ]; then 324 echo "#define WITH_LDAP 1" >> config.h 325 echo "LDAP_OBJ=storage_ldap.o" >> Makefile.settings 326 fi 327 294 328 if [ "$strip" = 0 ]; then 295 329 echo "STRIP=\# skip strip" >> Makefile.settings; … … 444 478 echo ' Building without IM-protocol support. We wish you a lot of fun...'; 445 479 fi 480 481 if [ "$ldap" = "0" ]; then 482 echo " LDAP storage backend disabled." 483 else 484 echo " LDAP storage backend enabled." 485 fi
Note: See TracChangeset
for help on using the changeset viewer.