diff --git a/m4/curl-functions.m4 b/m4/curl-functions.m4 index 26ed3960cd8717be07e6e5ed096bd903786c718b..2b11d720e391291079c7c96bd02324b20dd6759c 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