X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=configure;h=13b60620fe3cebdd0cc00cee4a4bc088260ef720;hp=1a8e939f8ad6d5e09651e9153579ef7d661a586e;hb=29f125212619ebca8621dd2106b412b22e1b6d22;hpb=0bd11b654e048a2ba562137c76d51296808b1a5d diff --git a/configure b/configure index 1a8e939f..13b60620 100755 --- a/configure +++ b/configure @@ -441,6 +441,19 @@ else EOF fi +printf "Checking byte order... " +cat> _byteorder.c < +#include +uint32_t test = 0x34333231; +int main() { printf("%.4s\n", (const char*)&test); return 0; } +EOF +${CC} ${CFLAGS} _byteorder.c -o _byteorder > /dev/null 2>&1 +util_byte_order=$(./_byteorder) +echo $util_byte_order + +rm -f _byteorder _byteorder.c + if [ $errors -gt 0 ]; then cat <