configure: add endian check