|
@@ -345,46 +345,6 @@ AC_DEFUN([CURL_CHECK_HEADER_WINCRYPT], [
|
|
|
])
|
|
|
|
|
|
|
|
|
-dnl CURL_CHECK_HEADER_WINLDAP
|
|
|
-dnl -------------------------------------------------
|
|
|
-dnl Check for compilable and valid winldap.h header
|
|
|
-
|
|
|
-AC_DEFUN([CURL_CHECK_HEADER_WINLDAP], [
|
|
|
- AC_REQUIRE([CURL_CHECK_HEADER_WINDOWS])dnl
|
|
|
- AC_CACHE_CHECK([for winldap.h], [curl_cv_header_winldap_h], [
|
|
|
- AC_COMPILE_IFELSE([
|
|
|
- AC_LANG_PROGRAM([[
|
|
|
-#undef inline
|
|
|
-#ifdef HAVE_WINDOWS_H
|
|
|
-#ifndef WIN32_LEAN_AND_MEAN
|
|
|
-#define WIN32_LEAN_AND_MEAN
|
|
|
-#endif
|
|
|
-#include <windows.h>
|
|
|
-#endif
|
|
|
-#include <winldap.h>
|
|
|
- ]],[[
|
|
|
-#if defined(__CYGWIN__) || defined(__CEGCC__)
|
|
|
- HAVE_WINLDAP_H shall not be defined.
|
|
|
-#else
|
|
|
- LDAP *ldp = ldap_init("dummy", LDAP_PORT);
|
|
|
- ULONG res = ldap_unbind(ldp);
|
|
|
-#endif
|
|
|
- ]])
|
|
|
- ],[
|
|
|
- curl_cv_header_winldap_h="yes"
|
|
|
- ],[
|
|
|
- curl_cv_header_winldap_h="no"
|
|
|
- ])
|
|
|
- ])
|
|
|
- case "$curl_cv_header_winldap_h" in
|
|
|
- yes)
|
|
|
- AC_DEFINE_UNQUOTED(HAVE_WINLDAP_H, 1,
|
|
|
- [Define to 1 if you have the winldap.h header file.])
|
|
|
- ;;
|
|
|
- esac
|
|
|
-])
|
|
|
-
|
|
|
-
|
|
|
dnl CURL_CHECK_HEADER_LBER
|
|
|
dnl -------------------------------------------------
|
|
|
dnl Check for compilable and valid lber.h header,
|
|
@@ -612,9 +572,7 @@ AC_DEFUN([CURL_CHECK_LIBS_WINLDAP], [
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
#endif
|
|
|
#include <windows.h>
|
|
|
-#ifdef HAVE_WINLDAP_H
|
|
|
#include <winldap.h>
|
|
|
-#endif
|
|
|
#ifdef HAVE_WINBER_H
|
|
|
#include <winber.h>
|
|
|
#endif
|