mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
localtime and gmtime are not thread-safe on newer AIXes either so we force
a check for there *_r-versions too
This commit is contained in:
parent
abd65e21c6
commit
0eace2fefe
14
configure.ac
14
configure.ac
@ -957,16 +957,24 @@ else
|
|||||||
CURL_CHECK_STRERROR_R()
|
CURL_CHECK_STRERROR_R()
|
||||||
|
|
||||||
AC_CHECK_FUNCS( gmtime_r )
|
AC_CHECK_FUNCS( gmtime_r )
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl for recent AIX versions, we skip all the thread-safe checks above since
|
dnl for recent AIX versions, we skip all the thread-safe checks above since
|
||||||
dnl they claim a thread-safe libc using the standard API. But the man page
|
dnl they claim a thread-safe libc using the standard API. But there are
|
||||||
dnl says strerror() is not thread-safe, so we check for this only!
|
dnl some functions still not thread-safe. Check for these!
|
||||||
|
|
||||||
|
dnl Let's hope this split URL remains working:
|
||||||
|
dnl http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/ \
|
||||||
|
dnl genprogc/thread_quick_ref.htm
|
||||||
|
|
||||||
if test "x$RECENTAIX" = "xyes"; then
|
if test "x$RECENTAIX" = "xyes"; then
|
||||||
|
dnl is there a localtime_r()
|
||||||
|
CURL_CHECK_LOCALTIME_R()
|
||||||
|
|
||||||
dnl is there a strerror_r()
|
dnl is there a strerror_r()
|
||||||
CURL_CHECK_STRERROR_R()
|
CURL_CHECK_STRERROR_R()
|
||||||
|
|
||||||
|
AC_CHECK_FUNCS( gmtime_r )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user