summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2012-10-20 01:28:03 -0400
committerAlan Antonuk <alan.antonuk@gmail.com>2012-10-20 02:45:49 -0400
commit545558dd78dc2470465e67beca8e9517090898a2 (patch)
tree5e860d2cf957b9616766712754c84c9506027d32 /configure.ac
parent3b5fe03234feace45ad15af1a90889755c6ce7f5 (diff)
downloadrabbitmq-c-github-ask-545558dd78dc2470465e67beca8e9517090898a2.tar.gz
Provide replacement for htonll where not available
Detect presence of htonll in autoconf/CMake, then provide a replacement inside amqp_private.h Use predefined macros to determine endianness based on processor type. This will help in case of cross compiling and a test program cannot be run.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 117c3a6..985ca18 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,7 +36,6 @@ m4_ifdef([AC_PROG_CC_C99], [AC_PROG_CC_C99],
# Environment setup
AC_CANONICAL_HOST
-AC_C_BIGENDIAN
AC_C_INLINE
# Set compiler flags
@@ -96,6 +95,7 @@ AC_SEARCH_LIBS([socket], [socket], [],
[LIBS="-lsocket -lnsl $LIBS"],
[AC_MSG_ERROR([cannot find socket library (library with socket symbol)])],
[-lnsl])])
+AC_CHECK_FUNCS([htonll])
# 64-bit option
AC_ARG_ENABLE([64-bit],