[FFmpeg-cvslog] build: fix objcc header check

Clément Bœsch git at videolan.org
Fri Sep 8 19:58:38 EEST 2017


ffmpeg | branch: master | Clément Bœsch <cboesch at gopro.com> | Tue Sep  5 18:06:29 2017 +0200| [b476e7720c067d75cd72190db7d36e72c3ff6abb] | committer: Clément Bœsch

build: fix objcc header check

$headers is a variable set in the context of other functions (we don't
use the "local" keyword in our scripts, so those variables are global).

Currently, when checking for AVFoundation/AVFoundation.h, the actual
enabled header is math.h.

Similarly, when testing for QuartzCore/CoreImage.h, the actual enabled
header is CoreGraphics/CoreGraphics.h.

This is completely broken and may be the reason why these checks are
made in random places.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b476e7720c067d75cd72190db7d36e72c3ff6abb
---

 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index a2aad677c8..334b597a8b 100755
--- a/configure
+++ b/configure
@@ -1118,7 +1118,7 @@ check_header_objcc(){
     {
        echo "#include <$header>"
        echo "int main(void) { return 0; }"
-    } | check_objcc && check_stat "$TMPO" && enable_safe $headers
+    } | check_objcc && check_stat "$TMPO" && enable_safe $header
 }
 
 check_func(){



More information about the ffmpeg-cvslog mailing list