Commit 5a75019a authored by Emil Velikov's avatar Emil Velikov Committed by Emil Velikov

configure: use AC_CHECK_HEADERS to check for endian.h

The currently we use the singular CHECK_HEADER combined with explicit
append to the DEFINES variable. That is a legacy misnomer, since it
requires us to add $DEFINES to every piece that we build.

Using the plural version of the helper sets the HAVE_ macro for us, plus
ensures it's passed to the compiler - if config.h is available in there
(not in the case of mesa) otherwise on the command line.

In hindsight, we should replace all the AC_CHECK_{FUNC,HEADER} instances
with the plural version (or even the _ONCE suffixed version) and drop
the DEFINES hacks.

Fixes: cbee1bfb ("meson/configure: detect endian.h instead of trying
to guess when it's available")
Bugzilla: default avatarEmil Velikov <>
Acked-by: default avatarEric Engestrom <>
Tested-by: default avatarClayton Craft <>
parent 90f556f0
......@@ -865,7 +865,7 @@ fi
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