0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-21 09:11:54 +00:00

Replaces local endianity testing macro with the common one.

That makes it easier to integrate BIRD to crosscompiling
buildsystems.
This commit is contained in:
Ondrej Zajicek 2009-10-27 22:25:36 +01:00
parent bff74c7aa3
commit e6ff7a08e4
2 changed files with 4 additions and 1 deletions

1
aclocal.m4 vendored
View File

@ -26,6 +26,7 @@ for size in 1 2 4 ; do
done
])
dnl BIRD_CHECK_ENDIAN is unused and obsolete
AC_DEFUN(BIRD_CHECK_ENDIAN,
[AC_CACHE_CHECK([CPU endianity], bird_cv_c_endian,[
AC_TRY_RUN([

View File

@ -179,8 +179,10 @@ AC_TRY_COMPILE([#include <sys/types.h>
AC_DEFINE(HAVE_SIN_LEN,,sin_len)],
AC_MSG_RESULT(no))
AC_C_BIGENDIAN([AC_DEFINE(CPU_BIG_ENDIAN)], [AC_DEFINE(CPU_LITTLE_ENDIAN)],
[AC_MSG_ERROR([Cannot determine CPU endianity.])])
BIRD_CHECK_INTEGERS
BIRD_CHECK_ENDIAN
BIRD_CHECK_STRUCT_ALIGN
BIRD_CHECK_TIME_T
BIRD_CHECK_STRUCT_IP_MREQN