# Basic functions check
AC_CHECK_FUNCS([ \
- atexit bzero clock_gettime dup2 fdatasync ftruncate \
+ atexit bzero clock_gettime dup2 fdatasync fls ftruncate \
gethostbyname gethostname getpagesize localtime_r memchr memset \
mkdir munmap putenv realpath rmdir socket strchr strcspn strdup \
- strncasecmp strndup strpbrk strrchr strstr strtol strtoul \
+ strncasecmp strndup strnlen strpbrk strrchr strstr strtol strtoul \
strtoull \
])
fi
+AX_LIB_SOCKET_NSL
+
# Epoll check. If not present, the build will fallback on poll() API
AX_HAVE_EPOLL(
[AX_CONFIG_FEATURE_ENABLE(epoll)],