Check for proper byteorder functions

[andersk@mit.edu: Add byteorder.h to libmoshcrypto_a_SOURCES]
This commit is contained in:
Quentin Smith
2012-02-25 17:11:09 -05:00
committed by Keith Winstein
parent b03d53d421
commit 17d6962af8
7 changed files with 59 additions and 5 deletions
+10
View File
@@ -71,6 +71,16 @@ AC_FUNC_MBRTOWC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([clock_gettime gettimeofday inet_ntoa iswprint memchr memset nl_langinfo setenv setlocale socket strchr strdup strerror strtol wcwidth])
AC_CHECK_DECL([htobe64],
[AC_DEFINE([HAVE_HTOBE64], [1],
[Define if htobe64 and friends exist.])],
[AC_CHECK_DECL([OSSwapHostToBigInt64],
[AC_DEFINE([HAVE_OSX_SWAP], [1],
[Define if OSSwapHostToBigInt64 and friends exist.])],
[AC_MSG_ERROR([Unable to find byte swapping functions])],
[[#include <libkern/OSByteOrder.h>]])],
[[#include <endian.h>]])
# Checks for protobuf
PKG_CHECK_MODULES([protobuf], [protobuf])