net-snmp 5.1.2: Update the endianess test to handle the situation where only
authorJamie Lenehan <lenehan@twibble.org>
Wed, 16 Aug 2006 14:52:12 +0000 (14:52 +0000)
committerJamie Lenehan <lenehan@twibble.org>
Wed, 16 Aug 2006 14:52:12 +0000 (14:52 +0000)
{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".

packages/net-snmp/net-snmp_5.1.2.bb

index d60b03a..25c9e62 100644 (file)
@@ -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
 }