]> granicus.if.org Git - curl/commitdiff
Add check for lber.h and ldap.h header files
authorYang Tse <yangsita@gmail.com>
Tue, 9 Oct 2007 23:44:14 +0000 (23:44 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 9 Oct 2007 23:44:14 +0000 (23:44 +0000)
configure.ac

index 0a40e5595cc1b8ea4ff2bc455f13fbfa51cb67b1..68d74422046a30e9739b6a43828f854108c8370e 100644 (file)
@@ -544,6 +544,8 @@ AC_HELP_STRING([--with-lber-lib=libname],[Specify name of lber lib file]),
 
 if test x$CURL_DISABLE_LDAP != x1 ; then
 
+  AC_CHECK_HEADERS(ldap.h)
+
   if test -z "$LDAPLIBNAME" ; then
     case $host in
       *-*-cygwin* | *-*-mingw* | *-*-pw32*)
@@ -570,6 +572,8 @@ fi
 
 if test x$CURL_DISABLE_LDAP != x1 ; then
 
+  AC_CHECK_HEADERS(lber.h)
+
   if test "$LBERLIBNAME" ; then
     dnl If name is "no" then don't define this library at all
     dnl (it's only needed if libldap.so's dependencies are broken).