]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Replaces local endianity testing macro with the common one.
authorOndrej Zajicek <santiago@crfreenet.org>
Tue, 27 Oct 2009 21:25:36 +0000 (22:25 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 27 Oct 2009 21:25:36 +0000 (22:25 +0100)
That makes it easier to integrate BIRD to crosscompiling
buildsystems.

aclocal.m4
configure.in

index f3b89530cf904564e297170497478cb227f42677..c5af7895f5b4135c1820c965ee5107393356b595 100644 (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([
index 8d519fddf40b3bd2519e837f9a06f59fa5cfdc13..429b22f8688fad2bcd05541f561b044888f192ba 100644 (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