Hello!

> ] if test -f conftest.c ; then 
>      if ${CC-cc} conftest.c -o conftest.o && test -f conftest.o ; then
>         if test `grep -l BIGenDianSyS conftest.o` ; then
>            echo $ac_n "looks big-endian ... " 1>&AC_FD_MSG
>            ac_cv_c_bigendian=yes 
>         fi
>         if test `grep -l LiTTleEnDian conftest.o` ; then
>            echo $ac_n 'looks little-endian ... ' 1>&AC_FD_MSG
>            ac_cv_c_bigendian=no
>         fi

An what happens if neither is found? What's the default? It should be an
error.

What happens if short integers occupy 4 bytes?

Also I would prefer names containing "ac". However careful you are in
using unusual capitalization, it is better to show a good example of using
only Autoconf namespace. My suggestion for the strings: "AC_LITTLEENDIAN"
and "AC_BIGENDIAN___"

By the way, can anybody think of an algorithm that avoids explicit support
for ASCII and EBCDIC only?

Regards,
Pavel Roskin

Reply via email to