1 AC_DEFUN([DETECT_BYTEORDER],
3 AC_REQUIRE([AC_C_BIGENDIAN])
4 AC_CACHE_CHECK([for htonll], [ac_cv_have_htonll],
7 #include <netinet/in.h>
12 [ ac_cv_have_htonll=yes ],
13 [ ac_cv_have_htonll=no ])
15 AS_IF([test "x$ac_cv_have_htonll" = "xyes"],[
16 AC_DEFINE([HAVE_HTONLL], [1], [Have ntohll])])
18 AM_CONDITIONAL([BUILD_BYTEORDER],[test "x$ac_cv_have_htonll" = "xno"])