aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-05 13:29:34 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-05 13:29:44 +0100
commit05286b6a9cc34bb5f4a9331df39b7c679b5d197d (patch)
treec1b6da01c187880d8cf5c947d2d6d956b0ba324f
parentf5f6e59495a34db0f11ceb4c33b119888698562c (diff)
parent52ccc4a0ece88030e67254418317d72089a0ecc8 (diff)
downloadffmpeg-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-xconfigure11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure b/configure
index bc010d5629..1a5856af1a 100755
--- a/configure
+++ b/configure
@@ -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; }"