[1.5] Fix big endian checking with autotools
Thanks to winfried for patch
Fixes issue 302