[FFmpeg-cvslog] configure: Split test_cflags function off from check_cflags
Diego Biurrun
git at videolan.org
Sat Nov 2 10:01:12 CET 2013
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Oct 31 19:48:59 2013 +0100| [23157d72b565e0228fec97f1eb059d4f8021a260] | committer: Diego Biurrun
configure: Split test_cflags function off from check_cflags
This is useful to test flags without directly adding them to CFLAGS.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=23157d72b565e0228fec97f1eb059d4f8021a260
---
configure | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/configure b/configure
index f72db76..549e04c 100755
--- a/configure
+++ b/configure
@@ -779,14 +779,19 @@ int x;
EOF
}
-check_cflags(){
- log check_cflags "$@"
+test_cflags(){
+ log test_cflags "$@"
set -- $($cflags_filter "$@")
- check_cc "$@" <<EOF && append CFLAGS "$@"
+ check_cc "$@" <<EOF
int x;
EOF
}
+check_cflags(){
+ log check_cflags "$@"
+ test_cflags "$@" && add_cflags "$@"
+}
+
test_ldflags(){
log test_ldflags "$@"
check_ld "$@" <<EOF
More information about the ffmpeg-cvslog
mailing list