- Timestamp:
- 2010-03-07T18:43:23Z (15 years ago)
- Branches:
- master
- Children:
- 279607e
- Parents:
- e08e53c (diff), c32f492 (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
re08e53c rfb020ac 270 270 detect_ldap() 271 271 { 272 TMPFILE= `mktemp`272 TMPFILE=$(mktemp) 273 273 if $CC -o $TMPFILE -shared -lldap 2>/dev/null >/dev/null; then 274 274 cat<<EOF>>Makefile.settings … … 283 283 ret=0 284 284 fi 285 } 286 287 RESOLV_TESTCODE=' 288 #include <arpa/nameser.h> 289 #include <resolv.h> 290 291 int main() 292 { 293 ns_initparse( NULL, 0, NULL ); 294 ns_parserr( NULL, ns_s_an, 0, NULL ); 295 } 296 ' 297 298 detect_resolv_dynamic() 299 { 300 echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -lresolv >/dev/null 2>/dev/null 301 if [ "$?" = "0" ]; then 302 echo 'EFLAGS+=-lresolv' >> Makefile.settings 303 return 0 304 fi 305 306 return 1 307 } 308 309 detect_resolv_static() 310 { 311 for i in $systemlibdirs; do 312 if [ -f $i/libresolv.a ]; then 313 echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null 314 if [ "$?" = "0" ]; then 315 echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings 316 return 0 317 fi 318 fi 319 done 320 321 return 1 285 322 } 286 323 … … 326 363 327 364 ## Yes, you, at the console! How can you authenticate if you don't have any SSL!? 328 if [ "$msn" = "1" ]; then365 if [ "$msn" = "1" -o "$yahoo" = "1" ]; then 329 366 echo 330 echo 'Real SSL support is necessary for MSN authentication, will build without' 331 echo 'MSN protocol support.' 367 echo 'WARNING: The MSN and Yahoo! modules will not work without SSL. Disabling.' 332 368 msn=0 369 yahoo=0 333 370 fi 334 371 … … 352 389 echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings 353 390 354 for i in $systemlibdirs; do 355 if [ -f $i/libresolv.a ]; then 356 echo '#define HAVE_RESOLV_A' >> config.h 357 echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings 358 break 359 fi 360 done 391 if detect_resolv_dynamic || detect_resolv_static; then 392 echo '#define HAVE_RESOLV_A' >> config.h 393 fi 361 394 362 395 STORAGES="text xml"
Note: See TracChangeset
for help on using the changeset viewer.