--- configure.in.orig 2004-09-28 06:20:11 +0400 +++ configure.in 2004-10-02 00:29:21 +0400 @@ -147,7 +147,7 @@ AC_CHECK_HEADERS(gsssasl.h) AC_CHECK_HEADERS(gssapi/gssapi_krb5.h gssapi.h) -AC_CHECK_LIB(resolv, main) +AC_CHECK_FUNC(res_search,,AC_CHECK_LIB(resolv, res_search)) AC_CHECK_LIB(nsl, main) AC_CHECK_FUNCS(strtok_r) @@ -209,8 +209,8 @@ dnl AC_CHECK_LIB(sasl, sasl_client_init,[LIBS="-lsasl $LIBS"],,$LIBS) if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = umich -o $with_ldap_lib = openldap \); then - AC_CHECK_LIB(lber, main) - AC_CHECK_LIB(ldap, main, [LIBS="-lldap $LIBS" found_ldap_lib=yes],,$LIBS) + AC_CHECK_FUNC(ber_alloc,,AC_CHECK_LIB(lber, ber_alloc)) + AC_CHECK_FUNC(ldap_init,found_ldap_lib=yes,AC_CHECK_LIB(ldap, main, [LIBS="-lldap $LIBS" found_ldap_lib=yes],,$LIBS)) fi if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = netscape5 \); then AC_CHECK_LIB(ldap50, main, LIBS="-lldap50 -lssldap50 -lssl3 -lnss3 -lnspr4 -lprldap50 -lplc4 -lplds4 $LIBS" found_ldap_lib=yes need_pthread=yes,, -lpthread)