From: Anton Mitrofanov Date: Thu, 8 Nov 2018 19:01:54 +0000 (+0300) Subject: configure: Fix log2f misdetection on some systems X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6af823959dc06f061e0a7b038dab83d9c1c9ea3;p=libx264 configure: Fix log2f misdetection on some systems Bug report by Dirk Fieldhouse. --- diff --git a/configure b/configure index 07ba4490..3cf63e09 100755 --- a/configure +++ b/configure @@ -1067,7 +1067,7 @@ if [ "$thread" = "posix" ]; then fi [ "$thread" != "no" ] && define HAVE_THREAD -if cc_check 'math.h' '' 'log2f(2);' ; then +if cc_check 'math.h' '' 'volatile float x = 2; return log2f(x);' ; then define HAVE_LOG2F fi