[Mesa-dev] [PATCH mesa] meson/configure: detect endian.h instead of trying to guess when it's available

Emil Velikov emil.l.velikov at gmail.com
Tue Mar 27 18:36:17 UTC 2018


On 25 March 2018 at 09:06, Jonathan Gray <jsg at jsg.id.au> wrote:
> On Wed, Mar 21, 2018 at 05:09:17PM +0000, Eric Engestrom wrote:
>> Cc: Maxin B. John <maxin.john at gmail.com>
>> Cc: Khem Raj <raj.khem at gmail.com>
>> Suggested-by: Jon Turney <jon.turney at dronecode.org.uk>
>> Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
>> ---
>>  configure.ac        | 1 +
>>  meson.build         | 2 +-
>>  src/util/u_endian.h | 2 +-
>>  3 files changed, 3 insertions(+), 2 deletions(-)
>
> OpenBSD and I suspect other systems have an endian.h that does not have
> the __ defines like glibc.
>
Sigh, I guess the C/POSIX commitee should really wake up and add that
to the standard.
... one way or another.

Jonathan can you play around with AC_CHECK_DECLS and send a patch that
works on your end?

Thanks
Emil

[1] https://www.gnu.org/software/autoconf/manual/autoconf-2.62/html_node/Generic-Declarations.html


More information about the mesa-dev mailing list