diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-01-05 13:29:34 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-05 13:29:44 +0100 |
commit | 05286b6a9cc34bb5f4a9331df39b7c679b5d197d (patch) | |
tree | c1b6da01c187880d8cf5c947d2d6d956b0ba324f | |
parent | f5f6e59495a34db0f11ceb4c33b119888698562c (diff) | |
parent | 52ccc4a0ece88030e67254418317d72089a0ecc8 (diff) | |
download | ffmpeg-05286b6a9cc34bb5f4a9331df39b7c679b5d197d.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
configure: Support preprocessor macros as header names
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rwxr-xr-x | configure | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -845,6 +845,13 @@ check_ld(){ check_cmd $ld $LDFLAGS $flags $(ld_o $TMPE) $TMPO $libs $extralibs } +print_include(){ + hdr=$1 + test "${hdr%.h}" = "${hdr}" && + echo "#include $hdr" || + echo "#include <$hdr>" +} + check_code(){ log check_code "$@" check=$1 @@ -853,7 +860,7 @@ check_code(){ shift 3 { for hdr in $headers; do - echo "#include <$hdr>" + print_include $hdr done echo "int main(void) { $code; return 0; }" } | check_$check "$@" @@ -956,7 +963,7 @@ check_func_headers(){ shift 2 { for hdr in $headers; do - echo "#include <$hdr>" + print_include $hdr done for func in $funcs; do echo "long check_$func(void) { return (long) $func; }" |