summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-07-29 18:38:04 +0000
committerng0 <ng0@n0.is>2019-07-29 18:38:04 +0000
commit379da4ce093bdc957b53b563aa1ae0c7c37c19ac (patch)
treef4b7683bda0c6b2c047eb34de836f0831971b76b
parent02a9ae28d64498266869b49b042905946df7ce66 (diff)
configure.ac: define a check for HAVE_SENDMSG
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 61b0c6f1..5b7a8114 100644
--- a/configure.ac
+++ b/configure.ac
@@ -642,6 +642,10 @@ AM_CONDITIONAL(USE_MS_LIB_TOOL, [test "x$ac_cv_use_ms_lib_tool" = "xyes"])
MHD_CHECK_SOCKET_SHUTDOWN_TRIGGER([AC_DEFINE([HAVE_LISTEN_SHUTDOWN],[1],[can use shutdown on listen sockets])])
AM_CONDITIONAL([HAVE_LISTEN_SHUTDOWN], [test "x$mhd_cv_host_shtdwn_trgr_select" = "xyes"])
+# SENDMSG. Should we check for SCM_RIGHTS instead?
+# https://lists.x.org/archives/xorg-devel/2013-November/038687.html
+AC_SEARCH_LIBS(sendmsg, socket, AC_DEFINE([HAVE_SENDMSG],1,[Define if your platform supports sendmsg]))
+
# set GCC options
# use '-fno-strict-aliasing', but only if the compiler
# and linker can take it