Sha256: 3ceaf0acc847157edcd4c1c5120355880e1e8a77bea3522bd7ed542990f235c9

Contents?: true

Size: 952 Bytes

Versions: 27

Compression:

Stored size: 952 Bytes

Contents

AC_DEFUN([DETECT_BYTEORDER],
[
    AC_MSG_CHECKING([for htonll])
    have_htoll="no"
    AC_RUN_IFELSE([
       AC_LANG_PROGRAM([
#include <sys/types.h>
#include <netinet/in.h>
#include <inttypes.h>
       ], [
          return htonll(0);
       ])            
    ], [
      have_htoll="yes"
      AC_DEFINE([HAVE_HTONLL], [1], [Have ntohll])
    ])

    AC_MSG_RESULT([$have_htoll])
    AM_CONDITIONAL([BUILD_BYTEORDER],[test "x$have_htoll" = "xno"])
    AC_MSG_CHECKING([byteorder])
    have_htoll="no"
    AC_RUN_IFELSE([
       AC_LANG_PROGRAM([
#include <sys/types.h>
#include <netinet/in.h>
#include <inttypes.h>
       ], [
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])
       AC_DEFINE([BYTEORDER_LITTLE_ENDIAN], [1], [Enable little endian byteorder])
    ])
])

Version data entries

27 entries across 27 versions & 4 rubygems

Version Path
memcached-1.3.5 ext/libmemcached-0.32/m4/byteorder.m4
memcached-1.3.4 ext/libmemcached-0.32/m4/byteorder.m4
memcached-1.3.3 ext/libmemcached-0.32/m4/byteorder.m4
memcached-1.3.2 ext/libmemcached-0.32/m4/byteorder.m4
memcached-1.3.1 ext/libmemcached-0.32/m4/byteorder.m4
memcached-1.3 ext/libmemcached-0.32/m4/byteorder.m4
memcached-1.2.7 ext/libmemcached-0.32/m4/byteorder.m4