diff options
author | Jamie Lenehan <lenehan@twibble.org> | 2006-08-16 14:52:12 +0000 |
---|---|---|
committer | Jamie Lenehan <lenehan@twibble.org> | 2006-08-16 14:52:12 +0000 |
commit | ca434073387b648f2644cc87425619a930e0a224 (patch) | |
tree | ca93a5f4776635f7b5ae169614079d02d66908e5 /packages/net-snmp | |
parent | b56e7b87013764eb9329d947ed2a16a3a61f5ff9 (diff) |
net-snmp 5.1.2: Update the endianess test to handle the situation where only
{big,litte}endian is set to "no" and neither of them is set to "yes". Saying
it's "not big endian" seems a bit backwards but that's what some site files
seem to get by with. Closes #1320 "net-snmp-5.1.2 fails on uclibc x86 and
ppc".
Diffstat (limited to 'packages/net-snmp')
-rw-r--r-- | packages/net-snmp/net-snmp_5.1.2.bb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/net-snmp/net-snmp_5.1.2.bb b/packages/net-snmp/net-snmp_5.1.2.bb index d60b03a746..25c9e62f7c 100644 --- a/packages/net-snmp/net-snmp_5.1.2.bb +++ b/packages/net-snmp/net-snmp_5.1.2.bb @@ -18,15 +18,16 @@ EXTRA_OECONF = "--enable-shared --disable-manuals" EXTRA_OEMAKE = "INSTALL_PREFIX=${D}" do_configure() { - # endianness fun.. inspired by openssl.inc + # endianness fun... inspired by openssl.inc . ${CONFIG_SITE} - if test "x$ac_cv_c_bigendian" = "xyes"; then + if [ "x$ac_cv_c_bigendian" = "xyes" -o "x$ac_cv_c_littleendian" = "xno" ]; then ENDIANESS=" --with-endianness=big" - elif test "x$ac_cv_c_littleendian" = "xyes"; then + elif [ "x$ac_cv_c_littleendian" = "xyes" -o "x$ac_cv_c_bigendian" = "xno" ]; then ENDIANESS=" --with-endianness=little" else oefatal do_configure cannot determine endianess fi + oenote Determined endianess as: $ENDIANESS oe_runconf $ENDIANESS } |