X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=config%2Fbyteorder.m4;h=b6bd84a8f18b5c00912d18765a6e3d3b66cf1b93;hb=ea518271265b52f0363b964d84bd8eaa87af9dfe;hp=0d8cc8f8920918b0024385ddcd9dd1e5800acbe6;hpb=7e6485dd32c678c108f68280830e6a129655c49c;p=awesomized%2Flibmemcached diff --git a/config/byteorder.m4 b/config/byteorder.m4 index 0d8cc8f8..b6bd84a8 100644 --- a/config/byteorder.m4 +++ b/config/byteorder.m4 @@ -17,25 +17,25 @@ AC_DEFUN([DETECT_BYTEORDER], AC_MSG_RESULT([$have_htoll]) AM_CONDITIONAL([BUILD_BYTEORDER],[test "x$have_htoll" == "xno"]) - if test "x$have_htoll" == "xno" - then - AC_MSG_CHECKING([byteorder]) - have_htoll="no" - AC_RUN_IFELSE([ - AC_LANG_PROGRAM([ + AC_MSG_CHECKING([byteorder]) + have_htoll="no" + AC_RUN_IFELSE([ + AC_LANG_PROGRAM([ #include #include #include - ], [ + ], [ if (htonl(5) != 5) { return 1; } - ]) - ], [ - AC_MSG_RESULT([big endian]) - AC_DEFINE([BYTEORDER_BIG_ENDIAN], [1], [Enable big endian byteorder]) - ], AC_MSG_RESULT([little endian])) - fi + ]) + ], [ + AC_MSG_RESULT([big endian]) + AC_DEFINE([BYTEORDER_BIG_ENDIAN], [1], [Enable big endian byteorder]) + ], [ + AC_MSG_RESULT([little endian]) + AC_DEFINE([BYTEORDER_LITTLE_ENDIAN], [1], [Enable little endian byteorder]) + ]) ]) DETECT_BYTEORDER