at the site file to determine the correct configure parameter (inspired by
how openssl does this). Previously this built on mipsel only. Should build
on all platforms now. Closes bug #483.
inherit autotools
EXTRA_OECONF = "--enable-shared --disable-manuals"
-EXTRA_OECONF_mipsel += "--with-endianness=little"
-
EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
do_configure() {
- oe_runconf
+ # endianness fun.. inspired by openssl.inc
+ . ${CONFIG_SITE}
+ if test "x$ac_cv_c_bigendian" = "xyes"; then
+ ENDIANESS=" --with-endianness=big"
+ elif test "x$ac_cv_c_littleendian" = "xyes"; then
+ ENDIANESS=" --with-endianness=little"
+ else
+ oefatal do_configure cannot determine endianess
+ fi
+ oe_runconf $ENDIANESS
}
do_install_append() {