projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Ubuntu complaint.
[awesomized/libmemcached]
/
m4
/
byteorder.m4
diff --git
a/m4/byteorder.m4
b/m4/byteorder.m4
index 4692bbd205c44a9fe3719e4a534169272b10de15..324317989470d443acb663e2344cb6bd9107ea1c 100644
(file)
--- a/
m4/byteorder.m4
+++ b/
m4/byteorder.m4
@@
-1,25
+1,19
@@
AC_DEFUN([DETECT_BYTEORDER],
[
AC_REQUIRE([AC_C_BIGENDIAN])
AC_DEFUN([DETECT_BYTEORDER],
[
AC_REQUIRE([AC_C_BIGENDIAN])
- AC_CACHE_CHECK([for htonll],[av_cv_have_htonll],[
-
- AC_RUN_IFELSE([
- AC_LANG_PROGRAM([[
+ AC_CACHE_CHECK([for htonll], [ac_cv_have_htonll],
+ [AC_TRY_LINK([
#include <sys/types.h>
#include <netinet/in.h>
#include <inttypes.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <inttypes.h>
- ]],[[
- return htonll(0);
- ]])
- ], [
- ac_cv_have_htonll=yes
- ],[
- ac_cv_have_htonll=no
- ])])
-
+ ], [
+return htonll(0);
+ ],
+ [ ac_cv_have_htonll=yes ],
+ [ ac_cv_have_htonll=no ])
+ ])
AS_IF([test "x$ac_cv_have_htonll" = "xyes"],[
AS_IF([test "x$ac_cv_have_htonll" = "xyes"],[
- AC_DEFINE([HAVE_HTONLL], [1], [Have ntohll])])
+
AC_DEFINE([HAVE_HTONLL], [1], [Have ntohll])])
AM_CONDITIONAL([BUILD_BYTEORDER],[test "x$ac_cv_have_htonll" = "xno"])
])
AM_CONDITIONAL([BUILD_BYTEORDER],[test "x$ac_cv_have_htonll" = "xno"])
])
-