Home GnuPG
Diffusion GnuPG f8bf5e01f766

build: Use AC_C_BIGENDIAN for detecting endian.

Description

build: Use AC_C_BIGENDIAN for detecting endian.

* acinclude.m4 (GNUPG_CHECK_ENDIAN): Remove.
* configure.ac (BIG_ENDIAN_HOST): Use AC_C_BIGENDIAN
to detect endian and set BIG_ENDIAN_HOST.
  • Reported-by: Alan Coopersmith <alan.coopersmith@oracle.com>
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Fri, Oct 11, 2:57 AM
Parents
rG57dce1ee62c2: common,gpg,scd,sm: Fix for Curve25519 OID supporting new and old.
Branches
Unknown
Tags
Unknown

Event Timeline

werner added inline comments.
/configure.ac
1350

To be aligned wit the Libgcrypt code I would prefer to keep the --disable-endian-check configure option. Over there we use:

AC_ARG_ENABLE(endian-check,
              AS_HELP_STRING([--disable-endian-check],
              [disable the endian check and trust the OS provided macros]),
	      endiancheck=$enableval,endiancheck=yes)
if test x"$endiancheck" = xyes ; then
  AC_C_BIGENDIAN
else
  AC_DEFINE(DISABLED_ENDIAN_CHECK,1,[configure did not test for endianness])
fi