代码拉取完成,页面将自动刷新
AC_DEFUN([AX_PROJECT_LOCAL_HOOK], [
AC_CHECK_HEADERS(pthread.h)
AC_CHECK_LIB([pthread], [pthread_create],
[CFLAGS="${CFLAGS} -pthread"],
[AC_MSG_WARN([cannot link with -pthread.])]
)
AC_CACHE_CHECK([whether SOCK_CLOEXEC is supported], [czmq_cv_sock_cloexec],
[AC_TRY_RUN([/* SOCK_CLOEXEC test */
#include <sys/types.h>
#include <sys/socket.h>
int main (int argc, char *argv [])
{
int s = socket (PF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0);
return (s == -1);
}
],
[czmq_cv_sock_cloexec="yes"],
[czmq_cv_sock_cloexec="no"],
[czmq_cv_sock_cloexec="not during cross-compile"]
)]
)
AS_IF([test "x$czmq_cv_sock_cloexec" = "xyes"],
AC_DEFINE([CZMQ_HAVE_SOCK_CLOEXEC],
[1],
[Whether SOCK_CLOEXEC is defined and functioning.])
)
])
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。