diff options
-rw-r--r-- | packages/hping/hping2_1.9.9+2.0.0rc3.bb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/hping/hping2_1.9.9+2.0.0rc3.bb b/packages/hping/hping2_1.9.9+2.0.0rc3.bb index 912f7c420e..cedcf975f9 100644 --- a/packages/hping/hping2_1.9.9+2.0.0rc3.bb +++ b/packages/hping/hping2_1.9.9+2.0.0rc3.bb @@ -24,14 +24,15 @@ S="${WORKDIR}/hping2-rc3" do_configure() { # endianness fun.. inspired by openssl.inc . ${CONFIG_SITE} - BYTEORDER="UNKNOWN" - if test "x$ac_cv_c_bigendian" = "xyes"; then + BYTEORDER="UNKNOWN" + if [ "x$ac_cv_c_bigendian" = "xyes" -o "x$ac_cv_c_littleendian" = "xno" ]; then BYTEORDER="__BIG_ENDIAN_BITFIELD" - elif test "x$ac_cv_c_littleendian" = "xyes"; then + elif [ "x$ac_cv_c_littleendian" = "xyes" -o "x$ac_cv_c_bigendian" = "xno" ]; then BYTEORDER="__LITTLE_ENDIAN_BITFIELD" else oefatal do_configure cannot determine endianess fi + oenote Determined byteorder as: $BYTEORDER BYTEORDER="${BYTEORDER}" CONFIGOSTYPE="LINUX" ./configure } |