[Date Prev][Date Next]
Re: configure.in thread support for Solaris
At 07:33 PM 6/1/99 -0500, firstname.lastname@example.org wrote:
>Is it possible to check for thread support functions in $LIBS last
>rather than first?
No. User specified configuration options, including those
within $LIBS, must be checked first. See archives for detail
discussions of this issue.
>Running configure "out of the box" on Solaris
>will cause the check for pthread_create in $LIBS to succeed
>(because it is in libc) but the check later on to test if
>pthread.h and pthread_create are compatible will fail (because
>the sample C program is not linked with -lpthread).
-devel has improved checks that should handle this situation.
With OpenLDAP 1.2.x, you must tell configure to ignore the
bogus pthread_create in $LIBS. See the FAQ for details.
>gets around this by setting LIBS="-lpthread -lposix4" prior
>to configure but it really should not be necessary.
This approach is not recommended as it will cause all OpenLDAP
applications are linked with $LIBS.