configure: Disable LDAP completely if the headers are not missing.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2017-07-25 12:46:18 +02:00
parent 1b85b6cab7
commit 6fd7e75d08
2 changed files with 4 additions and 0 deletions

2
configure vendored
View File

@ -16104,6 +16104,8 @@ fi
done done
LIBS="$ac_wine_check_funcs_save_LIBS" LIBS="$ac_wine_check_funcs_save_LIBS"
else
LDAP_LIBS=""
fi fi
CPPFLAGS=$ac_save_CPPFLAGS CPPFLAGS=$ac_save_CPPFLAGS
test -z "$LDAP_CFLAGS" || LDAP_CFLAGS=`echo " $LDAP_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'` test -z "$LDAP_CFLAGS" || LDAP_CFLAGS=`echo " $LDAP_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`

View File

@ -2172,6 +2172,8 @@ then
ldap_parse_vlv_control \ ldap_parse_vlv_control \
ldap_parse_vlvresponse_control, ldap_parse_vlvresponse_control,
[$LDAP_LIBS $PTHREAD_LIBS]) [$LDAP_LIBS $PTHREAD_LIBS])
else
LDAP_LIBS=""
fi]) fi])
fi fi
WINE_NOTICE_WITH(ldap,[test "x$LDAP_LIBS" = "x"], WINE_NOTICE_WITH(ldap,[test "x$LDAP_LIBS" = "x"],