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

Alexandre Julliard julliard at winehq.org
Tue Jul 25 16:11:26 CDT 2017


Module: wine
Branch: master
Commit: 6fd7e75d08669a3498583edc1662bc65d06212d1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6fd7e75d08669a3498583edc1662bc65d06212d1

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jul 25 12:46:18 2017 +0200

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

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 configure    | 2 ++
 configure.ac | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/configure b/configure
index 0c670fe..5340523 100755
--- a/configure
+++ b/configure
@@ -16104,6 +16104,8 @@ fi
 done
 
 LIBS="$ac_wine_check_funcs_save_LIBS"
+        else
+            LDAP_LIBS=""
         fi
 CPPFLAGS=$ac_save_CPPFLAGS
 test -z "$LDAP_CFLAGS" || LDAP_CFLAGS=`echo " $LDAP_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
diff --git a/configure.ac b/configure.ac
index 422a7eb..580c37c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2172,6 +2172,8 @@ then
                 ldap_parse_vlv_control \
                 ldap_parse_vlvresponse_control,
                 [$LDAP_LIBS $PTHREAD_LIBS])
+        else
+            LDAP_LIBS=""
         fi])
 fi
 WINE_NOTICE_WITH(ldap,[test "x$LDAP_LIBS" = "x"],




More information about the wine-cvs mailing list