>>> If libldap_r.so does require the same libs, please add
$EXTRA_LDAP_LIBS
>>> to the 'LDAP_LIBS_FE="-lldap_r"' line as well.
>>
>> Actually, I did that in the patch-as-committed. It seems to me that
>> it's probably harmless even if not needed.
>
> I have tried --with-thread-safety and configure fails on ldap check
> because for some reason CTHREAD_FLAGS (-Kpthread for UW) is missing
> on compile command, although present before that. I can't find why
You mean PTHREAD_FLAGS, right?
If it is present in line 1118, it should also be present in line 1133.
Can you verify that the part on configure.in between 1065 and 1118,
-Kpthread is correctly set on Unixware?
If not, thread support for Unixware is probebly broken.
If yes, something strange is going on.
Yours,
Laurenz Albe