configure: try ldap/lber in reversed order first
authorDaniel Stenberg <daniel@haxx.se>
Tue, 4 Jul 2017 09:33:51 +0000 (11:33 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 4 Jul 2017 09:33:55 +0000 (11:33 +0200)
When scanning for which LDAP libraries to use, try the -lldap -llber
combination before the reversed order since it has a greater chance of
working when linking with libcurl statically.

Fixes #1619
Closes #1634
Reported-by: David E. Narváez
acinclude.m4

index 1e1cf790c724dd8b724dedf41bc8226a204904f7..fe0e020b08593a6e97e7a349242e3c377bc41791 100644 (file)
@@ -790,8 +790,8 @@ AC_DEFUN([CURL_CHECK_LIBS_LDAP], [
   #
   for x_nlibs in '' "$u_libs" \
     '-lldap' \
-    '-llber -lldap' \
     '-lldap -llber' \
+    '-llber -lldap' \
     '-lldapssl -lldapx -lldapsdk' \
     '-lldapsdk -lldapx -lldapssl' ; do
     if test "$curl_cv_ldap_LIBS" = "unknown"; then