curl-library
Re: Curl_strerror and strerror_r on glibc
Date: Thu, 25 Mar 2004 15:51:34 +0100 (CET)
On Thu, 25 Mar 2004, Tor Arntsen wrote:
> It's not dectecting it, and worse -- it doesn't even try. I can't figure
> out why. The same 'configure' script that did 'checking for strerror_r' on
> my Linux box doesn't do that check when executed on AIX, and I can't figure
> out why.
It is rather simple, since the check for the function fails, the second check
doesn't run. That additional check is only to detect if we need a define to
get the function declared in the headers.
If the test fails, we need an additional test to define _THREAD_SAFE and see
if it can link with the strerror_r() then.
Eeeeeek. No!
Now I remember why this happens.
Gee, and this _after_ I wrote an additional and more advanced configure test!
For AIX "4.3 or later" we don't check for thread-safe versions of functions
since AIX since then have the "original" functions remade in a thread-safe
manner!
So, strerror() it is for AIX!
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-03-25