]> git.sesse.net Git - ffmpeg/commitdiff
configure: Revert some incorrect uses of check_cc()
authorDiego Biurrun <diego@biurrun.de>
Thu, 29 Mar 2018 07:24:34 +0000 (09:24 +0200)
committerDiego Biurrun <diego@biurrun.de>
Fri, 30 Mar 2018 08:12:13 +0000 (10:12 +0200)
configure

index 7612a6052c0bd5bfa8add22529eb5bb6a0c910f6..77754d0f51252738625247d357705d654d61953d 100755 (executable)
--- a/configure
+++ b/configure
@@ -4846,7 +4846,9 @@ check_disable_warning_headers -Wno-unused-variable
 
 check_objcflags -fobjc-arc && enable objc_arc
 
-check_cc blocks_extension "" "void (^block)(void)"
+test_cc <<EOF && enable blocks_extension
+void (^block)(void);
+EOF
 
 # add some linker flags
 check_ldflags -Wl,--warn-common
@@ -4900,10 +4902,14 @@ if enabled proper_dce; then
     if test_ldflags -Wl,${version_script},$TMPV; then
         append SHFLAGS '-Wl,${version_script},\$(SUBDIR)lib\$(NAME).ver'
         quotes='""'
-        check_cc symver_asm_label "" "void ff_foo(void) __asm__ ("av_foo@VERSION");
-                                      void ff_foo(void) { ${inline_asm+__asm__($quotes);} }"
-        check_cc symver_gnu_asm   "" "__asm__(".symver ff_foo,av_foo@VERSION");
-                                      void ff_foo(void) {}"
+        test_cc <<EOF && enable symver_asm_label
+void ff_foo(void) __asm__ ("av_foo@VERSION");
+void ff_foo(void) { ${inline_asm+__asm__($quotes);} }
+EOF
+        test_cc <<EOF && enable symver_gnu_asm
+__asm__(".symver ff_foo,av_foo@VERSION");
+void ff_foo(void) {}
+EOF
     fi
 fi