Merge commit '23157d72b565e0228fec97f1eb059d4f8021a260'
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 2 Nov 2013 08:55:40 +0000 (09:55 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 2 Nov 2013 08:55:47 +0000 (09:55 +0100)
* commit '23157d72b565e0228fec97f1eb059d4f8021a260':
  configure: Split test_cflags function off from check_cflags

Merged-by: Michael Niedermayer <michaelni@gmx.at>
1  2 
configure

diff --cc configure
+++ b/configure
@@@ -865,17 -787,14 +865,22 @@@ int x
  EOF
  }
  
+ check_cflags(){
+     log check_cflags "$@"
+     test_cflags "$@" && add_cflags "$@"
+ }
 +check_cxxflags(){
 +    log check_cxxflags "$@"
 +    set -- $($cflags_filter "$@")
 +    check_cxx "$@" <<EOF && append CXXFLAGS "$@"
 +int x;
 +EOF
 +}
 +
  test_ldflags(){
      log test_ldflags "$@"
 -    check_ld "$@" <<EOF
 +    check_ld "cc" "$@" <<EOF
  int main(void){ return 0; }
  EOF
  }