@@ -99,12 +99,12 @@ if(TARGET LDAP::LDAP)
9999 set (CMAKE_REQUIRED_LIBRARIES LDAP::LDAP)
100100
101101 # Sanity check.
102- check_symbol_exists(ldap_sasl_bind_s "ldap.h" _HAVE_LDAP_SASL_BIND_S )
103- # Fallback to deprecated ldap_simple_bind_s().
104- if ( NOT _HAVE_LDAP_SASL_BIND_S)
105- check_symbol_exists(ldap_simple_bind_s "ldap.h" _HAVE_LDAP_SIMPLE_BIND_S )
102+ check_symbol_exists(ldap_sasl_bind_s "ldap.h" _PHP_HAVE_LDAP_SASL_BIND_S )
103+ if ( NOT _PHP_HAVE_LDAP_SASL_BIND_S)
104+ # Fallback to deprecated ldap_simple_bind_s().
105+ check_symbol_exists(ldap_simple_bind_s "ldap.h" _PHP_HAVE_LDAP_SIMPLE_BIND_S )
106106 endif ()
107- if (NOT _HAVE_LDAP_SASL_BIND_S AND NOT _HAVE_LDAP_SIMPLE_BIND_S )
107+ if (NOT _PHP_HAVE_LDAP_SASL_BIND_S AND NOT _PHP_HAVE_LDAP_SIMPLE_BIND_S )
108108 message (
109109 FATAL_ERROR
110110 "LDAP sanity check failed: neither 'ldap_sasl_bind_s()' nor "
@@ -118,7 +118,7 @@ if(TARGET LDAP::LDAP)
118118
119119 int main(void)
120120 {
121- ldap_set_rebind_proc(0,0, 0);
121+ ldap_set_rebind_proc(0, 0, 0);
122122 return 0;
123123 }
124124 ]] HAVE_3ARG_SETREBINDPROC)
@@ -130,16 +130,16 @@ if(TARGET LDAP::LDAP)
130130
131131 # Solaris 2.8 claims to be 2004 API, but doesn't have ldap_parse_reference()
132132 # nor ldap_start_tls_s().
133- check_symbol_exists(ldap_parse_result "ldap.h" HAVE_LDAP_PARSE_RESULT)
134- check_symbol_exists(ldap_parse_reference "ldap.h" HAVE_LDAP_PARSE_REFERENCE)
135- check_symbol_exists(ldap_start_tls_s "ldap.h" HAVE_LDAP_START_TLS_S)
136133 check_symbol_exists(ldap_control_find "ldap.h" HAVE_LDAP_CONTROL_FIND)
137- check_symbol_exists(ldap_parse_extended_result "ldap.h" HAVE_LDAP_PARSE_EXTENDED_RESULT)
138134 check_symbol_exists(ldap_extended_operation "ldap.h" HAVE_LDAP_EXTENDED_OPERATION)
139135 check_symbol_exists(ldap_extended_operation_s "ldap.h" HAVE_LDAP_EXTENDED_OPERATION_S)
136+ check_symbol_exists(ldap_parse_extended_result "ldap.h" HAVE_LDAP_PARSE_EXTENDED_RESULT)
137+ check_symbol_exists(ldap_parse_reference "ldap.h" HAVE_LDAP_PARSE_REFERENCE)
138+ check_symbol_exists(ldap_parse_result "ldap.h" HAVE_LDAP_PARSE_RESULT)
140139 check_symbol_exists(ldap_passwd "ldap.h" HAVE_LDAP_PASSWD)
141- check_symbol_exists(ldap_whoami_s "ldap.h" HAVE_LDAP_WHOAMI_S)
142140 check_symbol_exists(ldap_refresh_s "ldap.h" HAVE_LDAP_REFRESH_S)
141+ check_symbol_exists(ldap_start_tls_s "ldap.h" HAVE_LDAP_START_TLS_S)
142+ check_symbol_exists(ldap_whoami_s "ldap.h" HAVE_LDAP_WHOAMI_S)
143143 cmake_pop_check_state()
144144endif ()
145145
0 commit comments