build: check if AS supports the '.func' directive
[ffmpeg.git] / configure
index 13bcdfe4d3a8431bcf6bd1f09bc8c37cfeb90b40..59f727358187570944e10bdd167ebef768aa8373 100755 (executable)
--- a/configure
+++ b/configure
@@ -1468,6 +1468,7 @@ SYSTEM_FUNCS="
 
 TOOLCHAIN_FEATURES="
     as_dn_directive
 
 TOOLCHAIN_FEATURES="
     as_dn_directive
+    as_func
     asm_mod_q
     attribute_may_alias
     attribute_packed
     asm_mod_q
     attribute_may_alias
     attribute_packed
@@ -3733,6 +3734,11 @@ if enabled asm; then
 \n: .int 0
 .endm
 m x
 \n: .int 0
 .endm
 m x
+EOF
+
+    check_as <<EOF && enable as_func
+.func test
+.endfunc
 EOF
 fi
 
 EOF
 fi