Commit 52ccc4a0 authored by Diego Biurrun's avatar Diego Biurrun Committed by Luca Barbato
Browse files

configure: Support preprocessor macros as header names

New versions of FreeType have moved the location of their API
header(s) and hide the location behind a macro.

Since the location changes between versions and no other way
to know the location exists, this workaround becomes necessary.
Signed-off-by: default avatarLuca Barbato <>
parent 82b9799b
......@@ -763,6 +763,13 @@ check_ld(){
check_cmd $ld $LDFLAGS $flags $(ld_o $TMPE) $TMPO $libs $extralibs
test "${hdr%.h}" = "${hdr}" &&
echo "#include $hdr" ||
echo "#include <$hdr>"
log check_code "$@"
......@@ -771,7 +778,7 @@ check_code(){
shift 3
for hdr in $headers; do
echo "#include <$hdr>"
print_include $hdr
echo "int main(void) { $code; return 0; }"
} | check_$check "$@"
......@@ -866,7 +873,7 @@ check_func_headers(){
shift 2
for hdr in $headers; do
echo "#include <$hdr>"
print_include $hdr
for func in $funcs; do
echo "long check_$func(void) { return (long) $func; }"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment