diff --git a/configure b/configure index 003dc6e42..b5d57d6dc 100755 --- a/configure +++ b/configure @@ -31515,7 +31515,7 @@ else case e in #( int main (void) { -(void)ldap_init(0, 0) +return ldap_msgfree(NULL) ; return 0; } diff --git a/m4/ldap.m4 b/m4/ldap.m4 index 68aca3922..39f2e352e 100644 --- a/m4/ldap.m4 +++ b/m4/ldap.m4 @@ -52,7 +52,7 @@ AC_DEFUN([SUDO_CHECK_LDAP], [ #include ]) AC_CACHE_CHECK([whether lber.h is needed when including ldap.h], [sudo_cv_header_lber_h], [ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include -#include ]], [[(void)ldap_init(0, 0)]])], [ +#include ]], [[return ldap_msgfree(NULL)]])], [ # No need to explicitly include lber.h when including ldap.h. sudo_cv_header_lber_h=no ], [