From: Yang Tse Date: Thu, 18 Sep 2008 11:21:55 +0000 (+0000) Subject: fix false negative strerror_r detection X-Git-Tag: curl-7_19_1~329 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a059e9241ece02a13c66133ceaa926c3c2032215;p=thirdparty%2Fcurl.git fix false negative strerror_r detection --- diff --git a/m4/curl-functions.m4 b/m4/curl-functions.m4 index 26ed3960cd..2b11d720e3 100644 --- a/m4/curl-functions.m4 +++ b/m4/curl-functions.m4 @@ -1735,6 +1735,12 @@ AC_DEFUN([CURL_CHECK_FUNC_STRERROR_R], [ ]) fi # + if test "$tst_works_glibc_strerror_r" = "yes"; then + tst_posix_strerror_r="no" + fi + if test "$tst_works_posix_strerror_r" = "yes"; then + tst_glibc_strerror_r="no" + fi if test "$tst_glibc_strerror_r" = "yes" && test "$tst_works_glibc_strerror_r" != "no" && test "$tst_posix_strerror_r" != "yes"; then