diff options
-rw-r--r-- | m4/curl-functions.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/curl-functions.m4 b/m4/curl-functions.m4 index 162e1f6ac..8973e968e 100644 --- a/m4/curl-functions.m4 +++ b/m4/curl-functions.m4 @@ -308,7 +308,8 @@ AC_DEFUN([CURL_CHECK_FUNC_GMTIME_R], [ ]) fi # - if test "$tst_works_gmtime_r" != "no"; then + if test "$tst_compi_gmtime_r" = "yes" && + test "$tst_works_gmtime_r" != "no"; then AC_MSG_CHECKING([if gmtime_r usage allowed]) if test "x$curl_disallow_gmtime_r" != "xyes"; then AC_MSG_RESULT([yes]) |