check if the BSWAP assembly for ARM works before building
This commit is contained in:
parent
557df7eed8
commit
8695b50688
@ -57,6 +57,14 @@ case $host_cpu in
|
|||||||
*sparc*)
|
*sparc*)
|
||||||
CFLAGS="$CFLAGS -D__STRICT_ALIGNMENT"
|
CFLAGS="$CFLAGS -D__STRICT_ALIGNMENT"
|
||||||
;;
|
;;
|
||||||
|
*arm*)
|
||||||
|
old_cflags=$CFLAGS
|
||||||
|
CFLAGS="$old_cflags -I$srcdir/include"
|
||||||
|
AC_TRY_COMPILE([#include "$srcdir/crypto/modes/modes_lcl.h"],
|
||||||
|
[int a = 0; BSWAP4(a);],
|
||||||
|
CFLAGS="$old_cflags",
|
||||||
|
CFLAGS="$old_cflags -D__STRICT_ALIGNMENT")
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin])
|
AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user