Fix ntohll test.. we need to link, not just compile ;-)
authorTrond Norbye <trond.norbye@gmail.com>
Mon, 2 Aug 2010 15:37:31 +0000 (17:37 +0200)
committerTrond Norbye <trond.norbye@gmail.com>
Mon, 2 Aug 2010 15:37:31 +0000 (17:37 +0200)
m4/byteorder.m4

index 5a99af7a596838fc072c8ba6c79d1cc705c390e7..324317989470d443acb663e2344cb6bd9107ea1c 100644 (file)
@@ -2,7 +2,7 @@ AC_DEFUN([DETECT_BYTEORDER],
 [
     AC_REQUIRE([AC_C_BIGENDIAN])
     AC_CACHE_CHECK([for htonll], [ac_cv_have_htonll],
-        [AC_TRY_COMPILE([
+        [AC_TRY_LINK([
 #include <sys/types.h>
 #include <netinet/in.h>
 #include <inttypes.h>