r16775: Attempt to get HP/UX host "gwen" into the build farm
authorVolker Lendecke <vlendec@samba.org>
Mon, 3 Jul 2006 06:58:39 +0000 (06:58 +0000)
committerVolker Lendecke <vlendec@samba.org>
Mon, 3 Jul 2006 06:58:39 +0000 (06:58 +0000)
Volker

source/configure.in

index edd65549bd84ca2da864ebe504a8b152a8488508..cd2da1a315f9f1f89df72f01f43648c0f7437b19 100644 (file)
@@ -3167,6 +3167,18 @@ if test x"$with_ldap_support" != x"no"; then
        
        with_ldap_support=no
   fi
+
+  ##################################################################
+  # HP/UX does not have ber_tag_t, disable LDAP there
+  AC_CHECK_TYPE(ber_tag_t,,,[#include <lber.h>])
+  if test x"$ac_cv_type_ber_tag_t" != x"yes"; then
+       if test x"$with_ldap_support" = x"yes"; then
+        AC_MSG_ERROR(ber_tag_t is needed for LDAP support)
+       else
+        AC_MSG_WARN(ber_tag_t is needed for LDAP support)
+       fi
+       with_ldap_support=no
+  fi
 fi
 
 if test x"$with_ldap_support" != x"no"; then