Add custom checks for lber, ldap, ldapssl and ldap_ssl header files

This commit is contained in:
Yang Tse
2007-10-14 02:37:04 +00:00
parent 887e8f9265
commit a171f60bf7
2 changed files with 222 additions and 18 deletions

View File

@@ -546,24 +546,10 @@ AC_HELP_STRING([--with-lber-lib=libname],[Specify name of lber lib file]),
if test x$CURL_DISABLE_LDAP != x1 ; then
AC_CHECK_HEADERS(lber.h)
AC_CHECK_HEADERS(ldap.h,
[],[],[
#if HAVE_LBER_H
#include <lber.h>
#endif
])
AC_CHECK_HEADERS(ldap_ssl.h,
[],[],[
#if HAVE_LBER_H
#include <lber.h>
#endif
#if HAVE_LDAP_H
#include <ldap.h>
#endif
])
CURL_CHECK_HEADER_LBER
CURL_CHECK_HEADER_LDAP
CURL_CHECK_HEADER_LDAPSSL
CURL_CHECK_HEADER_LDAP_SSL
if test -z "$LDAPLIBNAME" ; then
case $host in